diff --git a/crates/ruma-api-macros/src/api/metadata.rs b/crates/ruma-api-macros/src/api/metadata.rs index b97b1813..878a43af 100644 --- a/crates/ruma-api-macros/src/api/metadata.rs +++ b/crates/ruma-api-macros/src/api/metadata.rs @@ -88,10 +88,10 @@ impl Parse for Metadata { FieldValue::Name(n) => set_field(&mut name, n)?, FieldValue::Path(p) => set_field(&mut path, p)?, FieldValue::RateLimited(value, attrs) => { - rate_limited.push(MetadataField { attrs, value }) + rate_limited.push(MetadataField { attrs, value }); } FieldValue::Authentication(value, attrs) => { - authentication.push(MetadataField { attrs, value }) + authentication.push(MetadataField { attrs, value }); } } } diff --git a/crates/ruma-push-gateway-api/src/send_event_notification/v1.rs b/crates/ruma-push-gateway-api/src/send_event_notification/v1.rs index ed62b67c..e9d120a2 100644 --- a/crates/ruma-push-gateway-api/src/send_event_notification/v1.rs +++ b/crates/ruma-push-gateway-api/src/send_event_notification/v1.rs @@ -272,7 +272,7 @@ mod tweak_serde { let highlight = if let Ok(highlight) = access.next_value() { highlight } else { true }; - tweaks.push(Tweak::Highlight(highlight)) + tweaks.push(Tweak::Highlight(highlight)); } _ => tweaks.push(Tweak::Custom { name: key, value: access.next_value()? }), }; diff --git a/crates/ruma-state-res/src/event_auth.rs b/crates/ruma-state-res/src/event_auth.rs index bd1eb0b4..4334f55b 100644 --- a/crates/ruma-state-res/src/event_auth.rs +++ b/crates/ruma-state-res/src/event_auth.rs @@ -43,7 +43,7 @@ pub fn auth_types_for_event( if [MembershipState::Join, MembershipState::Invite].contains(&membership) { let key = (EventType::RoomJoinRules, "".to_owned()); if !auth_types.contains(&key) { - auth_types.push(key) + auth_types.push(key); } } @@ -59,7 +59,7 @@ pub fn auth_types_for_event( { let key = (EventType::RoomThirdPartyInvite, t_id.signed.token); if !auth_types.contains(&key) { - auth_types.push(key) + auth_types.push(key); } } } diff --git a/crates/ruma-state-res/tests/utils.rs b/crates/ruma-state-res/tests/utils.rs index 5fb12865..662f0fa0 100644 --- a/crates/ruma-state-res/tests/utils.rs +++ b/crates/ruma-state-res/tests/utils.rs @@ -147,7 +147,7 @@ pub fn do_check( let mut auth_events = vec![]; for key in auth_types { if state_before.contains_key(&key) { - auth_events.push(state_before[&key].clone()) + auth_events.push(state_before[&key].clone()); } }