Simplify to_primitive

This commit is contained in:
Andrew Morris
2023-05-26 14:03:05 +10:00
parent 90e8410257
commit e0b66ca93f
15 changed files with 13 additions and 58 deletions

View File

@@ -50,9 +50,6 @@ impl ValTrait for NativeFunction {
fn is_primitive(&self) -> bool {
false
}
fn to_primitive(&self) -> Val {
self.to_string().to_val()
}
fn is_truthy(&self) -> bool {
true
}