Skip to content

Commit

Permalink
clippy fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeshadow committed Mar 30, 2024
1 parent 90fece4 commit 19e9874
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/h3/proto/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub(crate) async fn connect(
let mut err = None;
for addr in addrs {
match _connect(endpoint, addr, hostname).await {
Ok(connection) => return Ok(connection.into()),
Ok(connection) => return Ok(connection),
Err(e) => err = Some(e),
}
}
Expand Down
6 changes: 2 additions & 4 deletions client/src/pool/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,14 @@ where
{
pub(crate) fn spawned(mut self, conn: C) {
self.fulfilled = true;
if let Some(state) = self
if let Some(Connection::Spawning(notify)) = self
.pool
.conns
.lock()
.unwrap()
.insert(self.key.clone(), Connection::Conn(conn))
{
if let Connection::Spawning(notify) = state {
notify.notify_waiters();
}
notify.notify_waiters();
}
}
}

0 comments on commit 19e9874

Please sign in to comment.