From 54288cb4cbf6c8206e2d2c8d06580e308ec8c57b Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 21 Jun 2023 09:36:29 +0200 Subject: [PATCH] Fix clippy lints --- crates/matrix-sdk/src/notification_settings/rules.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk/src/notification_settings/rules.rs b/crates/matrix-sdk/src/notification_settings/rules.rs index eba626d30..7f13574aa 100644 --- a/crates/matrix-sdk/src/notification_settings/rules.rs +++ b/crates/matrix-sdk/src/notification_settings/rules.rs @@ -423,7 +423,7 @@ fn get_predefined_underride_room_rule_id( } } -#[cfg(all(test))] +#[cfg(test)] pub(crate) mod tests { use assert_matches::assert_matches; use matrix_sdk_test::async_test; @@ -479,7 +479,7 @@ pub(crate) mod tests { // Insert an Override rule where the rule ID doesn't match the room id, // but with a condition that matches let new_rule = NewConditionalPushRule::new( - "custom_rule_id".to_string(), + "custom_rule_id".to_owned(), vec![PushCondition::EventMatch { key: "room_id".into(), pattern: room_id.to_string() }], vec![Action::Notify], );