Fixed a bunch of clippy suggestions
[kaka/rust-sdl-test.git] / src / common / time.rs
index 0468d5d..0902d94 100644 (file)
@@ -9,7 +9,7 @@ pub struct ScopeTimer {
 
 impl ScopeTimer {
     pub fn new(name: &'static str) -> Self {
-       ScopeTimer { start: Instant::now(), name: name }
+       ScopeTimer { start: Instant::now(), name }
     }
 }