Przeglądaj źródła

refactor(clippy): allow Colours::new call with self

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 lat temu
rodzic
commit
96071b0c7b
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/output/render/git.rs

+ 3 - 1
src/output/render/git.rs

@@ -60,7 +60,9 @@ impl f::GitStatus {
 
 pub trait Colours {
     fn not_modified(&self) -> Style;
-    #[allow(clippy::new_ret_no_self)]
+    // FIXME: this amount of allows needed to keep clippy happy should be enough
+    // of an argument that new needs to be renamed.
+    #[allow(clippy::new_ret_no_self,clippy::wrong_self_convention)]
     fn new(&self) -> Style;
     fn modified(&self) -> Style;
     fn deleted(&self) -> Style;