Skip to content

Commit

Permalink
avoid implicitly returning ()
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jul 23, 2020
1 parent c8229cd commit 67b4f3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libstd/sys/windows/thread_local_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 67b4f3b

Please sign in to comment.