From 805ba16c2cdacf218a1963e715fee8ee05b1f793 Mon Sep 17 00:00:00 2001 From: xzeldon Date: Fri, 6 Sep 2024 04:09:54 +0300 Subject: [PATCH] refactor: imports --- src/tray.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tray.rs b/src/tray.rs index 507d3f2..27175ce 100644 --- a/src/tray.rs +++ b/src/tray.rs @@ -3,6 +3,7 @@ use std::{ rc::Rc, sync::{mpsc, Arc, Mutex}, thread, + time::{Duration, Instant}, }; use crate::manager::DeviceManager; @@ -195,7 +196,7 @@ impl TrayApp { event_loop.run(move |event, _, control_flow| { *control_flow = tao::event_loop::ControlFlow::WaitUntil( - std::time::Instant::now() + std::time::Duration::from_millis(100), + Instant::now() + Duration::from_millis(100), ); if let Ok(device_ids) = rx.try_recv() {