Fix rustc / clippy warnings

This commit is contained in:
Jonas Platte 2022-01-20 00:10:39 +01:00
parent a0fc5eba72
commit 756a41f22d
No known key found for this signature in database
GPG key ID: 7D261D771D915378
8 changed files with 46 additions and 54 deletions

View file

@ -272,7 +272,7 @@ pub async fn get_key_changes_route(
device_list_updates.extend(
db.users
.keys_changed(
&sender_user.to_string(),
sender_user.as_str(),
body.from
.parse()
.map_err(|_| Error::BadRequest(ErrorKind::InvalidParam, "Invalid `from`."))?,