Skip to content

Commit 67b4f3b

Browse files
committed
avoid implicitly returning ()
1 parent c8229cd commit 67b4f3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/sys/windows/thread_local_key.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ unsafe fn register_dtor(key: Key, dtor: Dtor) {
131131
#[cfg(miri)]
132132
miri_static_root(&*node as *const _ as *const u8);
133133

134-
return mem::forget(node);
134+
mem::forget(node);
135+
return;
135136
}
136137
Err(cur) => head = cur,
137138
}

0 commit comments

Comments
 (0)