mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41: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
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue