diff options
| author | Serguey Parkhomovsky <xindigo@gmail.com> | 2026-03-28 22:44:18 -0700 |
|---|---|---|
| committer | Serguey Parkhomovsky <xindigo@gmail.com> | 2026-03-28 22:44:18 -0700 |
| commit | 831a22f618c4325dfa04681c086af930875af180 (patch) | |
| tree | 4871f4ff2cd0938564bc91bee86f486a9b2b5537 /src | |
| parent | e008298187c3dc57f37e9511763e9e35d7dca80b (diff) | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 36fea1f..dd8de1a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,7 @@ async fn main() { } => { info!(name, host, "Found Prusa"); let printer_state = Arc::new(RwLock::new(PrinterState::default())); - map.insert(name.clone(), printer_state.clone()); + map.insert(name.clone(), Arc::clone(&printer_state)); tokio::spawn(async move { match tokio::spawn(poll_prusa(name.clone(), host, api_key, printer_state)).await { @@ -66,7 +66,7 @@ async fn main() { } => { info!(name, host, "Found Bambu"); let printer_state = Arc::new(RwLock::new(PrinterState::default())); - map.insert(name.clone(), printer_state.clone()); + map.insert(name.clone(), Arc::clone(&printer_state)); tokio::spawn(async move { match tokio::spawn(poll_bambu( name.clone(), |
