Skip to content

Commit

Permalink
Remove a ref pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Nov 5, 2023
1 parent d21befe commit 330f162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/libtiny_tui/src/messaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ impl MessagingUI {
}

fn get_activity_line_idx(&mut self, ts: Timestamp) -> usize {
match self.last_activity_line {
Some(ref l) if l.ts == ts => {
match &self.last_activity_line {
Some(l) if l.ts == ts => {
let line_idx = l.line_idx;
// FIXME: It's a bit hacky to add a space in this function which from the name
// looks like a getter.
Expand Down

0 comments on commit 330f162

Please sign in to comment.