X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fcommon%2Ftime.rs;h=0902d9478849bae5b263b291044f0dbe961a259f;hb=953b4c960649b82f4e186c2a9afee5367270f0fc;hp=0468d5d22871b544c372913033af4fc74b1126c7;hpb=af18b07f3ff382c0bb122d0e0b235cd7991a2597;p=kaka%2Frust-sdl-test.git diff --git a/src/common/time.rs b/src/common/time.rs index 0468d5d..0902d94 100644 --- a/src/common/time.rs +++ b/src/common/time.rs @@ -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 } } }