Skip to content

Commit

Permalink
fix: run cargo fmt with latest Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
abonander committed Sep 12, 2023
1 parent 19e59ff commit 2497f0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sqlx-core/src/pool/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,13 @@ impl<DB: Database> PoolInner<DB> {
// If no extra permits are available then we shouldn't be trying to spin up
// connections anyway.
let Some(permit) = self.semaphore.try_acquire(1) else {
return Ok(());
};
return Ok(());
};

// We must always obey `max_connections`.
let Some(guard) = self.try_increment_size(permit).ok() else {
return Ok(());
};
return Ok(());
};

// We skip `after_release` since the connection was never provided to user code
// besides `after_connect`, if they set it.
Expand Down

0 comments on commit 2497f0b

Please sign in to comment.