about summary refs log tree commit diff
path: root/src/libstd/sys/windows/time.rs
diff options
context:
space:
mode:
authorMateusz Mikuła <matti@marinelayer.io>2019-09-05 13:30:30 +0200
committerMateusz Mikuła <mati865@gmail.com>2019-10-22 19:23:10 +0200
commit95c06a29707c8b2f811495c05b0cd009743e29de (patch)
tree78374dc1757b47bc5c54e9095da0e66395c889c0 /src/libstd/sys/windows/time.rs
parentdffc1b32820d740b3e2b3cf8e98b4d0511a62163 (diff)
downloadrust-95c06a29707c8b2f811495c05b0cd009743e29de.tar.gz
rust-95c06a29707c8b2f811495c05b0cd009743e29de.zip
Apply clippy::needless_return suggestions
Diffstat (limited to 'src/libstd/sys/windows/time.rs')
-rw-r--r--src/libstd/sys/windows/time.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/windows/time.rs b/src/libstd/sys/windows/time.rs
index e0f0e3a1a45..bd533c93d43 100644
--- a/src/libstd/sys/windows/time.rs
+++ b/src/libstd/sys/windows/time.rs
@@ -80,7 +80,7 @@ impl SystemTime {
         unsafe {
             let mut t: SystemTime = mem::zeroed();
             c::GetSystemTimeAsFileTime(&mut t.t);
-            return t
+            t
         }
     }
 
@@ -228,7 +228,7 @@ mod perf_counter {
                 FREQUENCY = frequency;
                 STATE.store(2, SeqCst);
             }
-            return frequency;
+            frequency
         }
     }