Skip to content

Commit b68e19b

Browse files
committed
fixed clippy error
1 parent b219df6 commit b68e19b

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/home/editing_pane.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,12 @@ impl Widget for EditingPane {
267267
// Check for room member update actions and power level updates
268268
for action in actions {
269269
// Check for MentionableTextInputAction::PowerLevelsUpdated
270-
if let Some(power_levels_action) = action.downcast_ref::<MentionableTextInputAction>() {
271-
if let MentionableTextInputAction::PowerLevelsUpdated(room_id, can_notify_room) = power_levels_action {
272-
// Make sure this is for our current room
273-
if let Some(info) = &self.info {
274-
if &info.room_id == room_id {
275-
let message_input = self.mentionable_text_input(id!(editing_content.edit_text_input));
276-
message_input.set_can_notify_room(*can_notify_room);
277-
}
270+
if let Some(MentionableTextInputAction::PowerLevelsUpdated(room_id, can_notify_room)) = action.downcast_ref::<MentionableTextInputAction>() {
271+
// Make sure this is for our current room
272+
if let Some(info) = &self.info {
273+
if &info.room_id == room_id {
274+
let message_input = self.mentionable_text_input(id!(editing_content.edit_text_input));
275+
message_input.set_can_notify_room(*can_notify_room);
278276
}
279277
}
280278
}

0 commit comments

Comments
 (0)