about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-07-23 17:06:33 +0200
committerRalf Jung <post@ralfj.de>2020-07-23 17:12:31 +0200
commit67b4f3b1482971f6eaecec0c5e01f8be467c491a (patch)
tree53495c3025753b3b49fc3ec144ed596a99ebf299 /src/libstd
parentc8229cdfc1a570b73d826cb92dd2d43db5257e4a (diff)
downloadrust-67b4f3b1482971f6eaecec0c5e01f8be467c491a.tar.gz
rust-67b4f3b1482971f6eaecec0c5e01f8be467c491a.zip
avoid implicitly returning ()
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys/windows/thread_local_key.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/thread_local_key.rs b/src/libstd/sys/windows/thread_local_key.rs
index 0bd9600b6f2..82901871e78 100644
--- a/src/libstd/sys/windows/thread_local_key.rs
+++ b/src/libstd/sys/windows/thread_local_key.rs
@@ -131,7 +131,8 @@ unsafe fn register_dtor(key: Key, dtor: Dtor) {
                 #[cfg(miri)]
                 miri_static_root(&*node as *const _ as *const u8);
 
-                return mem::forget(node);
+                mem::forget(node);
+                return;
             }
             Err(cur) => head = cur,
         }