mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-15 00:18:06 -05:00
Reduce explicit Val::Static()
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user