diff options
author | Canop <cano.petrole@gmail.com> | 2021-05-02 10:33:02 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-05-02 10:33:02 +0200 |
commit | 57277840522e463546476c0bda34314b9e9b2c21 (patch) | |
tree | 47948abdf30325fbb3b46d477764ba1806009d6d /src/icon | |
parent | 3f0aaec6f119ec7957bae56d883af04738d9f2ef (diff) |
spill some blood for the Clippy god
Diffstat (limited to 'src/icon')
-rw-r--r-- | src/icon/mod.rs | 2 | ||||
-rw-r--r-- | src/icon/vscode.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/icon/mod.rs b/src/icon/mod.rs index ce5510e..795d1d8 100644 --- a/src/icon/mod.rs +++ b/src/icon/mod.rs @@ -8,7 +8,7 @@ pub use { pub fn icon_plugin(icon_set: &str) -> Option<Box<dyn IconPlugin + Send + Sync>> { match icon_set { - "vscode" => Some(Box::new(vscode::VSCodeIconPlugin::new())), + "vscode" => Some(Box::new(vscode::VsCodeIconPlugin::new())), _ => None, } } diff --git a/src/icon/vscode.rs b/src/icon/vscode.rs index 5466228..39be6cf 100644 --- a/src/icon/vscode.rs +++ b/src/icon/vscode.rs @@ -4,7 +4,7 @@ use { ahash::AHashMap, }; -pub struct VSCodeIconPlugin { +pub struct VsCodeIconPlugin { icon_name_to_icon_codepoint_map: AHashMap<&'static str, u32>, file_name_to_icon_name_map: AHashMap<&'static str, &'static str>, double_extension_to_icon_name_map: AHashMap<&'static str, &'static str>, @@ -12,7 +12,7 @@ pub struct VSCodeIconPlugin { default_icon_point: u32, } -impl VSCodeIconPlugin { +impl VsCodeIconPlugin { #[allow(dead_code)] fn sanity_check( part_to_icon_name_map: &AHashMap<&str, &str>, @@ -123,7 +123,7 @@ impl VSCodeIconPlugin { } } -impl IconPlugin for VSCodeIconPlugin { +impl IconPlugin for VsCodeIconPlugin { fn get_icon( &self, tree_line_type: &TreeLineType, |