Skip to content

Commit c714af6

Browse files
committed
Formatting
1 parent d8fc507 commit c714af6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sqlx-core/src/pool/inner.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ impl<DB: Database> PoolInner<DB> {
197197
// Saturating: never underflow even if a concurrent `release` hasn't yet published
198198
// its increment. An underflow would wrap `num_idle` to `usize::MAX` and wedge the
199199
// maintenance task in a non-yielding spin (see `release` for the full invariant).
200-
let _ = self.num_idle.fetch_update(
201-
Ordering::AcqRel,
202-
Ordering::Acquire,
203-
|n| Some(n.saturating_sub(1)),
204-
);
200+
let _ = self
201+
.num_idle
202+
.fetch_update(Ordering::AcqRel, Ordering::Acquire, |n| {
203+
Some(n.saturating_sub(1))
204+
});
205205
Ok(Floating::from_idle(idle, (*self).clone(), permit))
206206
} else {
207207
Err(permit)

0 commit comments

Comments
 (0)