From dbd00a57b09027be87e15b55702ccbdfe834784d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 20 Jan 2021 17:23:54 +0100 Subject: [PATCH] http-client: fix typoed ticket cache condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit which was even copy-pasted once without noticing. found with clippy. Signed-off-by: Fabian Grünbichler Signed-off-by: Wolfgang Bumiller --- src/client/http_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/http_client.rs b/src/client/http_client.rs index 3a934062..567a6b73 100644 --- a/src/client/http_client.rs +++ b/src/client/http_client.rs @@ -351,7 +351,7 @@ impl HttpClient { }; match Self::credentials(client2.clone(), server2.clone(), port, auth_id.user().clone(), ticket).await { Ok(auth) => { - if use_ticket_cache & &prefix2.is_some() { + if use_ticket_cache && prefix2.is_some() { let _ = store_ticket_info(prefix2.as_ref().unwrap(), &server2, &auth.auth_id.to_string(), &auth.ticket, &auth.token); } *auth2.write().unwrap() = auth; @@ -378,7 +378,7 @@ impl HttpClient { let authinfo = auth.clone(); move |auth| { - if use_ticket_cache & &prefix.is_some() { + if use_ticket_cache && prefix.is_some() { let _ = store_ticket_info(prefix.as_ref().unwrap(), &server, &auth.auth_id.to_string(), &auth.ticket, &auth.token); } *authinfo.write().unwrap() = auth;