From eb99ea370782ac36415f7aea9d73f60ae76e5b0c Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 5 Aug 2024 13:35:27 -0700 Subject: [PATCH] the api --- src/bot_worker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot_worker.rs b/src/bot_worker.rs index efdad78..6857558 100644 --- a/src/bot_worker.rs +++ b/src/bot_worker.rs @@ -33,7 +33,7 @@ pub fn new<'a>(scope:&'a std::thread::Scope<'a,'_>)->crate::worker::QNWorker<'a, } } Instruction::Push{ins}=>{ - match &worker.file{ + match &mut worker.file{ Some(file)=>file.push(ins).unwrap(), None=>println!("no file created!"), }