Resolve all '#[allow(clippy::op_ref)]' error supressions

This commit is contained in:
Dr. Dystopia 2021-07-09 21:33:07 +02:00
parent 7686023430
commit 29e034fa5e

View File

@ -43,7 +43,6 @@ pub struct ClientInit {
cancel: Arc<AtomicBool>,
}
impl ClientInit {
#[allow(clippy::op_ref)] // TODO: Pending review in #587
pub fn new(
connection_args: ConnectionArgs,
username: String,
@ -78,7 +77,7 @@ impl ClientInit {
let _ = tx.send(Msg::IsAuthTrusted(auth_server.to_string()));
trust_rx
.recv()
.map(|AuthTrust(server, trust)| trust && &server == auth_server)
.map(|AuthTrust(server, trust)| trust && server == *auth_server)
.unwrap_or(false)
};