From 8ffd182ebd48515dd0a911833258d713db4d026b Mon Sep 17 00:00:00 2001 From: NightProg Date: Sat, 16 Sep 2023 11:45:47 +0200 Subject: [PATCH] push version --- crates/popper_builtin/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/popper_builtin/src/lib.rs b/crates/popper_builtin/src/lib.rs index 3c42b2c..a4afaae 100644 --- a/crates/popper_builtin/src/lib.rs +++ b/crates/popper_builtin/src/lib.rs @@ -42,7 +42,7 @@ struct CustomBuiltin { pub type Builtins = Vec>; -fn builtin_sum() -> CustomBuiltin { +fn builtin_sum() -> impl Builtin { CustomBuiltin { lang_name: "sum".to_string(), program: vec![ @@ -56,7 +56,7 @@ fn builtin_sum() -> CustomBuiltin { } } -fn builtin_print() -> CustomBuiltin { +fn builtin_print() -> impl Builtin { CustomBuiltin { lang_name: "print".to_string(), program: vec![ @@ -73,14 +73,14 @@ fn builtin_print() -> CustomBuiltin { } pub fn builtins() -> Builtins { - dbg!(vec![ + vec![ Box::new( builtin_print() ), Box::new( builtin_sum() ) - ]) + ] } pub fn get_builtin(lang_name: &str, builtins: Builtins) -> Option> {