Skip to content

Commit

Permalink
silence clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jul 5, 2022
1 parent 676a43f commit d13be48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ struct OwnedObject {
}
impl Drop for OwnedObject {
fn drop(&mut self) {
let () = unsafe { msg_send![self.ptr, release] };
#[allow(clippy::let_unit_value)]
{
let () = unsafe { msg_send![self.ptr, release] };
}
}
}

Expand Down

0 comments on commit d13be48

Please sign in to comment.