From 3daf2229d6fbabf880b4f9fd867eba849937bb65 Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Tue, 21 May 2024 22:10:04 -0700 Subject: [PATCH] enable `option_as_ref_cloned` lint --- Cargo.toml | 1 - src/api/client_server/account.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6e563018..b023f552 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -72,7 +72,6 @@ wildcard_dependencies = "warn" missing_errors_doc = "allow" missing_panics_doc = "allow" -option_as_ref_cloned = "allow" thread_local_initializer_can_be_made_const = "allow" unnecessary_to_owned = "allow" diff --git a/src/api/client_server/account.rs b/src/api/client_server/account.rs index 180b90c2..eaf3f841 100644 --- a/src/api/client_server/account.rs +++ b/src/api/client_server/account.rs @@ -393,7 +393,7 @@ pub(crate) async fn whoami_route( body: Ar, ) -> Result> { let sender_user = body.sender_user.as_ref().expect("user is authenticated"); - let device_id = body.sender_device.as_ref().cloned(); + let device_id = body.sender_device.clone(); Ok(Ra(whoami::v3::Response { user_id: sender_user.clone(),