Fix a bunch of clippy lints

This commit is contained in:
Jonas Platte 2021-08-31 21:20:03 +02:00
parent 364820aae4
commit a6bb9bbe68
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67
8 changed files with 77 additions and 85 deletions

View file

@ -40,7 +40,7 @@ impl AccountData {
roomuserdataid.push(0xff);
roomuserdataid.extend_from_slice(&event_type.as_bytes());
let mut key = prefix.clone();
let mut key = prefix;
key.extend_from_slice(event_type.as_bytes());
let json = serde_json::to_value(data).expect("all types here can be serialized"); // TODO: maybe add error handling