diff options
Diffstat (limited to 'src/library/mod.rs')
| -rw-r--r-- | src/library/mod.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs index c6dfb758..66fc5d59 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -22,18 +22,12 @@ macro_rules! std { /// Create a scope with all standard library functions. pub fn _std() -> Scope { let mut std = Scope::new(); - $(std.insert($name, wrap!($func));)* + $(std.set($name, ValueFunc::new(|args, ctx| Box::pin($func(args, ctx))));)* std } }; } -macro_rules! wrap { - ($func:expr) => { - ValueFunc::new(|args, ctx| Box::pin($func(args, ctx))) - }; -} - std! { "align" => align, "box" => boxed, |
