1
0
Эх сурвалжийг харах

refactor(clippy): clippy::useless_conversion

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 жил өмнө
parent
commit
1ac81b6fe0

+ 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()
 }