From 330f16298df7712cd8ddfd12a1d7def96061f6dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Sun, 5 Nov 2023 11:58:20 +0100 Subject: [PATCH] Remove a ref pattern --- crates/libtiny_tui/src/messaging.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/libtiny_tui/src/messaging.rs b/crates/libtiny_tui/src/messaging.rs index c5bb326e..a5a1c0db 100644 --- a/crates/libtiny_tui/src/messaging.rs +++ b/crates/libtiny_tui/src/messaging.rs @@ -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.