avoid implicitly returning ()

This commit is contained in:
Ralf Jung 2020-07-23 17:06:33 +02:00
parent c8229cdfc1
commit 67b4f3b148

View File

@ -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,
}