aports/community/atuin/fix-sqlx-build.patch
2023-04-12 09:45:02 +02:00

13 lines
450 B
Diff

https://github.com/launchbadge/sqlx/issues/2198
--- a/vendor/sqlx/sqlx-core/src/sqlite/statement/unlock_notify.rs
+++ b/vendor/sqlx/sqlx-core/src/sqlite/statement/unlock_notify.rs
@@ -48,6 +48,8 @@
}
fn wait(&self) {
+ // We only want to wait until the lock is available again.
+ #[allow(let_underscore_lock)]
let _ = self
.condvar
.wait_while(self.mutex.lock().unwrap(), |fired| !*fired)