From 8043862c9903668d6bf8b661065d464c3ee36c0e Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 19 Oct 2023 17:57:04 -0700 Subject: [PATCH] delete compat worker --- src/worker.rs | 25 ------------------------- 1 file changed, 25 deletions(-) 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");