Sfoglia il codice sorgente

refactor(clippy): clippy::useless_conversion

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 anni fa
parent
commit
1ac81b6fe0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/output/file_name.rs

+ 1 - 1
src/output/file_name.rs

@@ -430,5 +430,5 @@ pub trait Colours: FiletypeColours {
 
 /// Generate a string made of `n` spaces.
 fn spaces(width: u32) -> String {
-    (0 .. width).into_iter().map(|_| ' ').collect()
+    (0 .. width).map(|_| ' ').collect()
 }