about summary refs log tree commit diff
path: root/src/libstd/sys/windows/handle.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/handle.rs
parentdffc1b32820d740b3e2b3cf8e98b4d0511a62163 (diff)
Apply clippy::needless_return suggestions
Diffstat (limited to 'src/libstd/sys/windows/handle.rs')
-rw-r--r--src/libstd/sys/windows/handle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/handle.rs b/src/libstd/sys/windows/handle.rs
index 3e5aa693354..3986cda1a50 100644
--- a/src/libstd/sys/windows/handle.rs
+++ b/src/libstd/sys/windows/handle.rs
@@ -46,7 +46,7 @@ impl Handle {
     pub fn into_raw(self) -> c::HANDLE {
         let ret = self.raw();
         mem::forget(self);
-        return ret;
+        ret
     }
 }