From 7e5844a2c379c3b6386fbc7451f270f2e99d9666 Mon Sep 17 00:00:00 2001 From: Toshit Chawda Date: Sun, 20 Oct 2024 17:39:54 -0700 Subject: [PATCH] fix clippy --- client/src/stream_provider.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/stream_provider.rs b/client/src/stream_provider.rs index 288965f..5ffed81 100644 --- a/client/src/stream_provider.rs +++ b/client/src/stream_provider.rs @@ -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 + } } }