diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-10-20 16:00:14 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-10-20 16:00:14 -0400 |
commit | 260cb503490a39e0863a55c5d4d7416b9ecb4598 (patch) | |
tree | 5d31fa8a4a408880ee36158a56b6b77ee4a750fe /src/config | |
parent | 6e2164aeaaf02bf61099e773a0341a38652c5da4 (diff) |
cargo fmt
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/general/app.rs | 3 | ||||
-rw-r--r-- | src/config/keymap/keymapping.rs | 3 | ||||
-rw-r--r-- | src/config/option/display_option.rs | 1 | ||||
-rw-r--r-- | src/config/option/preview_option.rs | 5 | ||||
-rw-r--r-- | src/config/option/sort_option.rs | 1 | ||||
-rw-r--r-- | src/config/option/tab_option.rs | 4 |
6 files changed, 1 insertions, 16 deletions
diff --git a/src/config/general/app.rs b/src/config/general/app.rs index 5c3c3cf..1bfefcf 100644 --- a/src/config/general/app.rs +++ b/src/config/general/app.rs @@ -1,7 +1,4 @@ -use serde_derive::Deserialize; - use crate::config::option::{DisplayOption, PreviewOption, SortOption, TabOption}; -use crate::config::{parse_to_config_file, TomlConfigFile}; #[derive(Debug, Clone)] pub struct AppConfig { diff --git a/src/config/keymap/keymapping.rs b/src/config/keymap/keymapping.rs index 3c3f68c..79fd684 100644 --- a/src/config/keymap/keymapping.rs +++ b/src/config/keymap/keymapping.rs @@ -4,13 +4,12 @@ use std::collections::{hash_map::Entry, HashMap}; use std::convert::{AsMut, AsRef, From}; use std::str::FromStr; +use termion::event::Event; #[cfg(feature = "mouse")] use termion::event::MouseEvent; -use termion::event::{Event, Key}; use crate::config::{parse_to_config_file, TomlConfigFile}; use crate::error::JoshutoResult; -use crate::io::IoWorkerOptions; use crate::key_command::{Command, CommandKeybind}; use crate::util::keyparse::str_to_event; diff --git a/src/config/option/display_option.rs b/src/config/option/display_option.rs index 3624840..304ddf7 100644 --- a/src/config/option/display_option.rs +++ b/src/config/option/display_option.rs @@ -1,4 +1,3 @@ -use std::convert::From; use std::fs; use tui::layout::Constraint; diff --git a/src/config/option/preview_option.rs b/src/config/option/preview_option.rs index 16fe7ff..aa1c8a6 100644 --- a/src/config/option/preview_option.rs +++ b/src/config/option/preview_option.rs @@ -1,10 +1,5 @@ -use std::convert::From; use std::path; -use serde_derive::Deserialize; - -use crate::CONFIG_HIERARCHY; - const fn default_max_preview_size() -> u64 { 2 * 1024 * 1024 // 2 MB } diff --git a/src/config/option/sort_option.rs b/src/config/option/sort_option.rs index e83b049..edf3a6f 100644 --- a/src/config/option/sort_option.rs +++ b/src/config/option/sort_option.rs @@ -1,5 +1,4 @@ use std::cmp; -use std::convert::From; use crate::config::option::{SortType, SortTypes}; use crate::fs::JoshutoDirEntry; diff --git a/src/config/option/tab_option.rs b/src/config/option/tab_option.rs index d7f0eac..b729254 100644 --- a/src/config/option/tab_option.rs +++ b/src/config/option/tab_option.rs @@ -1,7 +1,3 @@ -use std::convert::From; - -use serde_derive::Deserialize; - use crate::tab::TabHomePage; #[derive(Clone, Debug)] |