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

@ -393,7 +393,7 @@ pub(crate) async fn whoami_route(
body: Ar<whoami::v3::Request>,
) -> Result<Ra<whoami::v3::Response>> {
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(),