mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
enable option_as_ref_cloned lint
This commit is contained in:
parent
eaeb7620d9
commit
3daf2229d6
2 changed files with 1 additions and 2 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue