Skip to content

Commit 9f96782

Browse files
committed
sqlx-postgres: Fix unused code
1 parent 3c3b75a commit 9f96782

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sqlx-postgres/src/connection/worker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ impl Shared {
312312
self.lock().parameter_statuses.remove(name)
313313
}
314314

315+
#[cfg(feature = "offline")]
315316
pub fn with_lock<T>(&self, f: impl Fn(&mut SharedInner) -> T) -> T {
316317
let mut lock = self.lock();
317318
f(&mut lock)

0 commit comments

Comments
 (0)