From b7492a8546689bf7483c59d32caa5a15cd75f7b1 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Mon, 23 Mar 2020 15:26:07 -0400 Subject: [PATCH] mixin-exists allows 2 args --- src/builtin/meta.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin/meta.rs b/src/builtin/meta.rs index e58dac9..83630e5 100644 --- a/src/builtin/meta.rs +++ b/src/builtin/meta.rs @@ -106,7 +106,7 @@ pub(crate) fn register(f: &mut HashMap) { f.insert( "mixin-exists".to_owned(), Box::new(|args, scope| { - max_args!(args, 1); + max_args!(args, 2); match arg!(args, 0, "name") { Value::Ident(s, _) => Ok(Value::bool(scope.mixin_exists(&s))), v => Err(format!("$name: {} is not a string.", v).into()),