Skip to content

Commit

Permalink
Use get_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
james7132 committed Apr 9, 2024
1 parent 282398d commit 14fd269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ impl<'a> Executor<'a> {

impl Drop for Executor<'_> {
fn drop(&mut self) {
let ptr = self.state.load(Ordering::Acquire);
let ptr = *self.state.get_mut();
if ptr.is_null() {
return;
}
Expand Down

0 comments on commit 14fd269

Please sign in to comment.