From fd910b463d7f516096787dbbcc4759627b376cfd Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 25 Oct 2023 17:15:33 +0200 Subject: [PATCH] Avoid unused import in release builds --- crates/zed/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index dce579e8478c2ef0a2de400e685fa4a71e0f3f30..04fd3baaadd3e6a06b76e6eafff8e8c14447968d 100644 --- a/crates/zed/src/main.rs +++ b/crates/zed/src/main.rs @@ -33,7 +33,7 @@ use std::{ Arc, Weak, }, thread, - time::{Duration, SystemTime, UNIX_EPOCH}, + time::{SystemTime, UNIX_EPOCH}, }; use util::{ channel::{parse_zed_link, ReleaseChannel}, @@ -656,7 +656,7 @@ fn load_embedded_fonts(app: &App) { #[cfg(debug_assertions)] async fn watch_themes(fs: Arc, mut cx: AsyncAppContext) -> Option<()> { let mut events = fs - .watch("styles/src".as_ref(), Duration::from_millis(100)) + .watch("styles/src".as_ref(), std::time::Duration::from_millis(100)) .await; while (events.next().await).is_some() { let output = Command::new("npm") @@ -682,7 +682,7 @@ async fn watch_languages(fs: Arc, languages: Arc) -> O let mut events = fs .watch( "crates/zed/src/languages".as_ref(), - Duration::from_millis(100), + std::time::Duration::from_millis(100), ) .await; while (events.next().await).is_some() { @@ -697,7 +697,7 @@ fn watch_file_types(fs: Arc, cx: &mut AppContext) { let mut events = fs .watch( "assets/icons/file_icons/file_types.json".as_ref(), - Duration::from_millis(100), + std::time::Duration::from_millis(100), ) .await; while (events.next().await).is_some() {