diff --git a/yazi-widgets/src/input/history.rs b/yazi-widgets/src/input/history.rs index 23259256..40661b05 100644 --- a/yazi-widgets/src/input/history.rs +++ b/yazi-widgets/src/input/history.rs @@ -1,4 +1,4 @@ -use std::mem; +use std::{collections::VecDeque, mem}; use super::InputSnaps; @@ -7,8 +7,8 @@ const MAX_LENGTH: usize = 20; #[derive(Default)] pub struct InputHistory { - entries: std::collections::VecDeque, - entry_snaps: std::collections::VecDeque>, + entries: VecDeque, + entry_snaps: VecDeque>, idx: Option, draft: Option, } @@ -16,8 +16,8 @@ pub struct InputHistory { impl InputHistory { pub const fn new() -> Self { Self { - entries: std::collections::VecDeque::new(), - entry_snaps: std::collections::VecDeque::new(), + entries: VecDeque::new(), + entry_snaps: VecDeque::new(), idx: None, draft: None, }