Skip to content

Commit

Permalink
Fix clippy double borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinaboos authored Jan 11, 2025
1 parent 6db6aee commit 0fe07d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/profile/user_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ impl Widget for UserProfileSlidingPane {
// * The button text changes to "Unignore" if the user is already ignored.
let is_pane_showing_current_account = info.room_member.as_ref()
.map(|rm| rm.is_account_user())
.unwrap_or_else(|| current_user_id().is_some_and(|uid| &uid == &info.user_id));
.unwrap_or_else(|| current_user_id().is_some_and(|uid| uid == info.user_id));

// TODO: uncomment the line below once the `direct_message_button` logic is implemented.
// self.button(id!(direct_message_button)).set_enabled(!is_pane_showing_current_account);
Expand Down

0 comments on commit 0fe07d5

Please sign in to comment.