enable manual_string_new lint

This commit is contained in:
Charles Hall 2024-05-14 17:37:57 -07:00
parent 9606f59141
commit 645d88177a
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
4 changed files with 24 additions and 23 deletions

View file

@ -435,7 +435,7 @@ impl Service {
// The original create event must be in the auth events
if !matches!(
auth_events
.get(&(StateEventType::RoomCreate, "".to_owned()))
.get(&(StateEventType::RoomCreate, String::new()))
.map(|a| a.as_ref()),
Some(_) | None
) {