diff --git a/sqlx-core/src/sqlite/statement/unlock_notify.rs b/sqlx-core/src/sqlite/statement/unlock_notify.rs index fb47f282..d0a86897 100644 --- a/sqlx-core/src/sqlite/statement/unlock_notify.rs +++ b/sqlx-core/src/sqlite/statement/unlock_notify.rs @@ -48,7 +48,7 @@ impl Notify { } fn wait(&self) { - let _ = self + let _guard = self .condvar .wait_while(self.mutex.lock().unwrap(), |fired| !*fired) .unwrap();