diff options
| author | Serguey Parkhomovsky <xindigo@gmail.com> | 2026-03-03 21:05:57 -0800 |
|---|---|---|
| committer | Serguey Parkhomovsky <xindigo@gmail.com> | 2026-03-03 21:05:57 -0800 |
| commit | 68e7be4a897a1d8440d54e0c926796e1083409a9 (patch) | |
| tree | 6359b83d85e4e6a6089135631e957ba556db948d /src/main.rs | |
| parent | b0e11d29dfc5f2cf9678872e782be2ed0625ef30 (diff) | |
Clean up turbofish syntax
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 4fbd24a..3b1c7f4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use tokio::sync::Mutex; async fn main() { let content = fs::read_to_string("config.toml").expect("Couldn't read config.toml"); let config = Config::load(&content); - let state = Arc::new(Mutex::new(HashMap::<String, PrinterState>::new())); + let state: Arc<Mutex<HashMap<String, PrinterState>>> = Arc::new(Mutex::new(HashMap::new())); for printer in config.printers { match printer { |
