Extend unused_must_use
to cover block exprs
This commit is contained in:
parent
314c39d2ea
commit
72b3b58efc
19 changed files with 289 additions and 65 deletions
|
@ -67,7 +67,7 @@ struct ArenaChunk<T = u8> {
|
|||
|
||||
unsafe impl<#[may_dangle] T> Drop for ArenaChunk<T> {
|
||||
fn drop(&mut self) {
|
||||
unsafe { Box::from_raw(self.storage.as_mut()) };
|
||||
unsafe { drop(Box::from_raw(self.storage.as_mut())) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue