diff --git a/src/main.rs b/src/main.rs index 46120ed..c90d72f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,7 @@ fn main() { .collect(); if res.is_ok() { let mut p = pattern.write().unwrap(); - p = res.unwrap(); + *p = res.unwrap(); } loop { thread::sleep(time::Duration::from_millis(250));