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(),