Skip to content

Commit f85d006

Browse files
KodrAusRalfJung
andauthored
Update src/libs/maintaining-std.md
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 68fdc6c commit f85d006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/maintaining-std.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl<T> Drop for OptionCell<T> {
203203
fn drop(&mut self) {
204204
if self.is_init {
205205
// Safety: The cell is being dropped, so it can't be accessed again.
206-
let _ = unsafe { self.value.read() };
206+
drop(unsafe { self.value.read() });
207207
}
208208
}
209209
}

0 commit comments

Comments
 (0)