From ad585871606d5cffad221d58b724a91d233ed982 Mon Sep 17 00:00:00 2001 From: Akulij Date: Wed, 21 May 2025 12:24:16 +0500 Subject: [PATCH] fix test: use BotFunction's method by_name --- src/botscript.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/botscript.rs b/src/botscript.rs index 540cb77..66bd0bf 100644 --- a/src/botscript.rs +++ b/src/botscript.rs @@ -384,7 +384,7 @@ mod tests { .run_script("function cancel_buttons() {return 'cancelation'}") .unwrap(); - let f = BotFunction("cancel_buttons".to_string()); + let f = BotFunction::by_name("cancel_buttons".to_string()); let res = f.call_context(&runner).unwrap(); println!("RES: {res:?}");