diff options
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/keymap.rs | 4 | ||||
-rw-r--r-- | src/config/mimetype.rs | 8 | ||||
-rw-r--r-- | src/config/theme.rs | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/config/keymap.rs b/src/config/keymap.rs index 328132d..e79069b 100644 --- a/src/config/keymap.rs +++ b/src/config/keymap.rs @@ -6,7 +6,7 @@ use termion::event::Key; use super::{parse_to_config_file, ConfigStructure, Flattenable}; use crate::commands::{self, CommandKeybind, JoshutoCommand}; -use crate::io::Options; +use crate::io::IOWorkerOptions; use crate::util::key_mapping::str_to_key; use crate::KEYMAP_FILE; @@ -136,7 +136,7 @@ impl JoshutoCommandMapping { let keys = [Key::Char('y'), Key::Char('y')]; insert_keycommand(&mut m, cmd, &keys)?; - let cmd = Box::new(commands::PasteFiles::new(Options::default())); + let cmd = Box::new(commands::PasteFiles::new(IOWorkerOptions::default())); let keys = [Key::Char('p'), Key::Char('p')]; insert_keycommand(&mut m, cmd, &keys)?; diff --git a/src/config/mimetype.rs b/src/config/mimetype.rs index 189dd29..9b82f08 100644 --- a/src/config/mimetype.rs +++ b/src/config/mimetype.rs @@ -2,7 +2,6 @@ use serde_derive::Deserialize; use std::collections::HashMap; use std::fmt; use std::io::Read; -use std::path::Path; use std::process; use super::{parse_config_file, ConfigStructure}; @@ -83,9 +82,10 @@ impl JoshutoMimetypeEntry { } pub fn execute_with<I, S>(&self, paths: I) -> std::io::Result<()> - where - I: IntoIterator<Item = S>, - S: AsRef<std::ffi::OsStr>, { + where + I: IntoIterator<Item = S>, + S: AsRef<std::ffi::OsStr>, + { let program = String::from(self.get_command()); let mut command = process::Command::new(program); diff --git a/src/config/theme.rs b/src/config/theme.rs index 02f9a03..fe88a5d 100644 --- a/src/config/theme.rs +++ b/src/config/theme.rs @@ -1,7 +1,7 @@ use serde_derive::Deserialize; use std::collections::HashMap; -use tui::style::{Color, Modifier, Style}; +use tui::style::{Color, Modifier}; use crate::THEME_FILE; |