Reduce explicit Val::Static()

This commit is contained in:
Andrew Morris
2023-05-26 14:25:20 +10:00
parent e0b66ca93f
commit 67ba0d9a03
9 changed files with 64 additions and 58 deletions

View File

@@ -104,9 +104,3 @@ impl fmt::Display for NativeFunction {
write!(f, "function() {{ [native code] }}")
}
}
impl ToVal for &'static NativeFunction {
fn to_val(self) -> Val {
Val::Static(self)
}
}