mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
style(history): use use
This commit is contained in:
parent
fac3336c91
commit
5526da0970
1 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
use std::mem;
|
use std::{collections::VecDeque, mem};
|
||||||
|
|
||||||
use super::InputSnaps;
|
use super::InputSnaps;
|
||||||
|
|
||||||
|
|
@ -7,8 +7,8 @@ const MAX_LENGTH: usize = 20;
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct InputHistory {
|
pub struct InputHistory {
|
||||||
entries: std::collections::VecDeque<String>,
|
entries: VecDeque<String>,
|
||||||
entry_snaps: std::collections::VecDeque<Option<InputSnaps>>,
|
entry_snaps: VecDeque<Option<InputSnaps>>,
|
||||||
idx: Option<usize>,
|
idx: Option<usize>,
|
||||||
draft: Option<InputSnaps>,
|
draft: Option<InputSnaps>,
|
||||||
}
|
}
|
||||||
|
|
@ -16,8 +16,8 @@ pub struct InputHistory {
|
||||||
impl InputHistory {
|
impl InputHistory {
|
||||||
pub const fn new() -> Self {
|
pub const fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
entries: std::collections::VecDeque::new(),
|
entries: VecDeque::new(),
|
||||||
entry_snaps: std::collections::VecDeque::new(),
|
entry_snaps: VecDeque::new(),
|
||||||
idx: None,
|
idx: None,
|
||||||
draft: None,
|
draft: None,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue