diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-10-15 17:27:47 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-10-15 17:27:47 -0400 |
commit | c0a071f81b2a7a9776dfca313b19ade350c677b2 (patch) | |
tree | 9694c95453de122ef02734845f4226c7a6c0818c /src/ui | |
parent | 1e18ad1b95397b18af801e5b72eba366abb92fd2 (diff) |
deprecate skim over fzf
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/views/tui_textfield.rs | 6 | ||||
-rw-r--r-- | src/ui/widgets/tui_file_preview.rs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/views/tui_textfield.rs b/src/ui/views/tui_textfield.rs index 348c0f4..d829852 100644 --- a/src/ui/views/tui_textfield.rs +++ b/src/ui/views/tui_textfield.rs @@ -16,16 +16,16 @@ use crate::util::input; struct CompletionTracker { pub index: usize, pub pos: usize, - pub original: String, + pub _original: String, pub candidates: Vec<Pair>, } impl CompletionTracker { - pub fn new(pos: usize, candidates: Vec<Pair>, original: String) -> Self { + pub fn new(pos: usize, candidates: Vec<Pair>, _original: String) -> Self { CompletionTracker { index: 0, pos, - original, + _original, candidates, } } diff --git a/src/ui/widgets/tui_file_preview.rs b/src/ui/widgets/tui_file_preview.rs index 193ae2d..75e378c 100644 --- a/src/ui/widgets/tui_file_preview.rs +++ b/src/ui/widgets/tui_file_preview.rs @@ -7,13 +7,13 @@ use crate::fs::JoshutoDirEntry; use crate::preview::preview_file::FilePreview; pub struct TuiFilePreview<'a> { - entry: &'a JoshutoDirEntry, + _entry: &'a JoshutoDirEntry, preview: &'a FilePreview, } impl<'a> TuiFilePreview<'a> { - pub fn new(entry: &'a JoshutoDirEntry, preview: &'a FilePreview) -> Self { - Self { entry, preview } + pub fn new(_entry: &'a JoshutoDirEntry, preview: &'a FilePreview) -> Self { + Self { _entry, preview } } } |