summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-05 20:45:04 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-05 20:45:04 -0400
commitebf8e5c674322a0fe85339e57b0f6a80e51087d3 (patch)
tree0c061ac6554f4f0a19c867a74d1fdfc975377711 /src/config
parent4c194de5c7e940e1eaf71c0fb4b455ba6547c880 (diff)
cargo fmt
Diffstat (limited to 'src/config')
-rw-r--r--src/config/keymap.rs8
-rw-r--r--src/config/preview.rs1
2 files changed, 2 insertions, 7 deletions
diff --git a/src/config/keymap.rs b/src/config/keymap.rs
index 9b3c6a9..72bba86 100644
--- a/src/config/keymap.rs
+++ b/src/config/keymap.rs
@@ -2,8 +2,8 @@ use serde_derive::Deserialize;
use std::collections::{hash_map::Entry, HashMap};
use std::process::exit;
-use crate::commands::{self, CommandKeybind, JoshutoCommand};
use super::{parse_config_file, ConfigStructure, Flattenable};
+use crate::commands::{self, CommandKeybind, JoshutoCommand};
use crate::KEYMAP_FILE;
pub const BACKSPACE: i32 = 0x7F;
@@ -52,11 +52,7 @@ impl ConfigStructure for JoshutoKeymap {
}
}
-fn insert_keycommand(
- map: &mut JoshutoKeymap,
- keycommand: Box<JoshutoCommand>,
- keys: &[i32],
-) {
+fn insert_keycommand(map: &mut JoshutoKeymap, keycommand: Box<JoshutoCommand>, keys: &[i32]) {
match keys.len() {
0 => {}
1 => match map.entry(keys[0]) {
diff --git a/src/config/preview.rs b/src/config/preview.rs
index dd6665d..9f52a71 100644
--- a/src/config/preview.rs
+++ b/src/config/preview.rs
@@ -58,4 +58,3 @@ impl std::default::Default for JoshutoPreview {
}
}
}
-