From 7a2dee060f9bb2e530289b42531657613eab1855 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Mon, 15 Dec 2025 13:41:51 +0800 Subject: Add Windows-specific import for Instant and KeyEventKind The KeyEventKind import is moved inside the Windows conditional block to avoid unused import warnings on other platforms. --- src/bin/jvii.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bin') diff --git a/src/bin/jvii.rs b/src/bin/jvii.rs index 168acac..0cc8411 100644 --- a/src/bin/jvii.rs +++ b/src/bin/jvii.rs @@ -21,6 +21,8 @@ use just_enough_vcs_cli::utils::display::md; use just_enough_vcs_cli::utils::env::current_locales; use rust_i18n::set_locale; use rust_i18n::t; +#[cfg(windows)] +use tokio::time::Instant; // Import i18n files rust_i18n::i18n!("locales", fallback = "en"); @@ -393,6 +395,8 @@ impl Editor { #[cfg(windows)] { // Skip key release events (we only care about presses) + + use crossterm::event::KeyEventKind; if matches!(key_event.kind, KeyEventKind::Release) { continue; } -- cgit