Просмотр исходного кода

fix(theme): needless_borrow

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 лет назад
Родитель
Сommit
760f69ca2d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/theme/mod.rs

+ 1 - 1
src/theme/mod.rs

@@ -347,7 +347,7 @@ impl FileNameColours for Theme {
     fn mount_point(&self)         -> Style { self.ui.filekinds.mount_point }
 
     fn colour_file(&self, file: &File<'_>) -> Style {
-        self.exts.colour_file(file, &self).unwrap_or(self.ui.filekinds.normal)
+        self.exts.colour_file(file, self).unwrap_or(self.ui.filekinds.normal)
     }
 }