fix clippy

This commit is contained in:
Toshit Chawda 2024-10-20 17:39:54 -07:00
parent 9e7f05e381
commit 7e5844a2c3
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D

View file

@ -282,7 +282,7 @@ impl hyper::rt::Write for HyperIo {
impl Connection for HyperIo {
fn connected(&self) -> Connected {
let conn = Connected::new();
let conn = if let Either::Left(tls_stream) = &self.inner {
if let Either::Left(tls_stream) = &self.inner {
if tls_stream.h2_negotiated {
conn.negotiated_h2()
} else {
@ -290,8 +290,7 @@ impl Connection for HyperIo {
}
} else {
conn
};
conn
}
}
}