diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2025-12-15 13:41:51 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2025-12-15 13:41:51 +0800 |
| commit | 7a2dee060f9bb2e530289b42531657613eab1855 (patch) | |
| tree | 630935c457aed550164ac21a0d8a84a763a0a8d6 | |
| parent | b320d9529495c1bb95a960620bff452218b7d4ad (diff) | |
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.
| -rw-r--r-- | src/bin/jvii.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |
