mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
fix clippy
This commit is contained in:
parent
9e7f05e381
commit
7e5844a2c3
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue