diff --git a/sqlx-sqlite/src/statement/unlock_notify.rs b/sqlx-sqlite/src/statement/unlock_notify.rs index ef755b6ac0..b7e723a3f3 100644 --- a/sqlx-sqlite/src/statement/unlock_notify.rs +++ b/sqlx-sqlite/src/statement/unlock_notify.rs @@ -57,7 +57,8 @@ impl Notify { } fn fire(&self) { - *self.mutex.lock().unwrap() = true; + let mut lock = self.mutex.lock().unwrap(); + *lock = true; self.condvar.notify_one(); } }