chore: fix clippy lints (#75)

This commit is contained in:
dan
2025-12-04 12:12:11 +02:00
committed by GitHub
parent 590971bf04
commit 566c621ffa

View File

@@ -263,6 +263,7 @@ where
#[cfg_attr(feature = "tracing", tracing::instrument(skip_all, err))]
fn handle_shutdown(&mut self, cx: &mut Context<'_>) -> Result<()> {
#[allow(clippy::collapsible_if)]
// Attempt to close the connection if the shutdown notify has been set.
if !self.closed && self.shutdown_notify.load(Ordering::Relaxed) {
if let Poll::Ready(()) = self.conn.poll_close(cx)? {