enable option_as_ref_cloned lint

This commit is contained in:
Charles Hall 2024-05-21 22:10:04 -07:00
parent eaeb7620d9
commit 3daf2229d6
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 1 additions and 2 deletions

View file

@ -72,7 +72,6 @@ wildcard_dependencies = "warn"
missing_errors_doc = "allow" missing_errors_doc = "allow"
missing_panics_doc = "allow" missing_panics_doc = "allow"
option_as_ref_cloned = "allow"
thread_local_initializer_can_be_made_const = "allow" thread_local_initializer_can_be_made_const = "allow"
unnecessary_to_owned = "allow" unnecessary_to_owned = "allow"

View file

@ -393,7 +393,7 @@ pub(crate) async fn whoami_route(
body: Ar<whoami::v3::Request>, body: Ar<whoami::v3::Request>,
) -> Result<Ra<whoami::v3::Response>> { ) -> Result<Ra<whoami::v3::Response>> {
let sender_user = body.sender_user.as_ref().expect("user is authenticated"); 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 { Ok(Ra(whoami::v3::Response {
user_id: sender_user.clone(), user_id: sender_user.clone(),