Explorar o código

refactor(clippy): clippy::useless_conversion

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen %!s(int64=2) %!d(string=hai) anos
pai
achega
1ac81b6fe0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()
 }