From 67b4f3b1482971f6eaecec0c5e01f8be467c491a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 23 Jul 2020 17:06:33 +0200 Subject: [PATCH] avoid implicitly returning () --- src/libstd/sys/windows/thread_local_key.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, } -- 2.44.0