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!"), }