diff options
| author | Ralf Jung <post@ralfj.de> | 2020-07-23 17:06:33 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-07-23 17:12:31 +0200 |
| commit | 67b4f3b1482971f6eaecec0c5e01f8be467c491a (patch) | |
| tree | 53495c3025753b3b49fc3ec144ed596a99ebf299 /src/libstd | |
| parent | c8229cdfc1a570b73d826cb92dd2d43db5257e4a (diff) | |
| download | rust-67b4f3b1482971f6eaecec0c5e01f8be467c491a.tar.gz rust-67b4f3b1482971f6eaecec0c5e01f8be467c491a.zip | |
avoid implicitly returning ()
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys/windows/thread_local_key.rs | 3 |
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, } |
