Parcourir la source

refactor(clippy): clippy::useless_conversion

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen il y a 2 ans
Parent
commit
1ac81b6fe0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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.
 /// Generate a string made of `n` spaces.
 fn spaces(width: u32) -> String {
 fn spaces(width: u32) -> String {
-    (0 .. width).into_iter().map(|_| ' ').collect()
+    (0 .. width).map(|_| ' ').collect()
 }
 }