mirror of
https://github.com/eza-community/eza.git
synced 2025-12-23 05:36:50 +00:00
fix(theme): remove unnecessary map and make clippy happy
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
This commit is contained in:
parent
0d51ff4488
commit
28d7cf0b56
1 changed files with 1 additions and 3 deletions
|
|
@ -372,9 +372,7 @@ impl FileNameColours for Theme {
|
|||
fn executable_file(&self) -> Style { self.ui.filekinds.executable }
|
||||
fn mount_point(&self) -> Style { self.ui.filekinds.mount_point }
|
||||
|
||||
fn icon(&self) -> Option<Style> {
|
||||
self.ui.icon.map_or(None, |icon| Some(icon))
|
||||
}
|
||||
fn icon(&self) -> Option<Style> { self.ui.icon }
|
||||
|
||||
fn colour_file(&self, file: &File<'_>) -> Style {
|
||||
self.exts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue