Skip to content

Commit

Permalink
binding to an unused variable to avoid immediately dropping the value
Browse files Browse the repository at this point in the history
  • Loading branch information
joehillen committed Nov 10, 2022
1 parent 4b70538 commit 30cbc8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx-core/src/sqlite/statement/unlock_notify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl Notify {
}

fn wait(&self) {
let _ = self
let _ignore = self
.condvar
.wait_while(self.mutex.lock().unwrap(), |fired| !*fired)
.unwrap();
Expand Down

0 comments on commit 30cbc8c

Please sign in to comment.