Skip to content

Commit 396aaa2

Browse files
committed
appease clippy
1 parent 2f691ea commit 396aaa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tls_listener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn handle_tls<State: Clone + Send + Sync + 'static>(
104104
Ok(tls_stream) => {
105105
let stream = TlsStreamWrapper::new(tls_stream);
106106
let fut = async_h1::accept(stream, |mut req| async {
107-
if let Err(_) = req.url_mut().set_scheme("https") {
107+
if req.url_mut().set_scheme("https").is_err() {
108108
tide::log::error!("unable to set https scheme on url", { url: req.url().to_string() });
109109
}
110110

0 commit comments

Comments
 (0)