diff --git a/src/worker.rs b/src/worker.rs index 65e9d66..de4d4c1 100644 --- a/src/worker.rs +++ b/src/worker.rs @@ -120,31 +120,6 @@ impl QNWorker{ } } -pub struct CompatCRWorker{ - data:std::marker::PhantomData, - f:F, - value:Value, -} - -implValue> CompatCRWorker{ - pub fn new(value:Value,f:F) -> Self { - Self { - f, - value, - data:std::marker::PhantomData, - } - } - - pub fn send(&mut self,task:Task)->Result<(),()>{ - self.value=(self.f)(task); - Ok(()) - } - - pub fn grab_clone(&self)->Value{ - self.value.clone() - } -} - #[test]//How to run this test with printing: cargo test --release -- --nocapture fn test_worker() { println!("hiiiii");