From 66a410083e484ce4c6894b6ecaa29879cc1f8c08 Mon Sep 17 00:00:00 2001 From: Sijmen Date: Fri, 1 Dec 2023 04:17:12 +0100 Subject: [PATCH] Rename map_irc_message to view_irc_message --- src/message_log.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message_log.rs b/src/message_log.rs index 33f6bc3..17ac450 100644 --- a/src/message_log.rs +++ b/src/message_log.rs @@ -349,7 +349,7 @@ impl<'a> MessageLog { let messages = channel .messages .iter() - .flat_map(|irc_message| Self::map_irc_message(current_nickname, irc_message)) + .flat_map(|irc_message| Self::view_irc_message(current_nickname, irc_message)) .collect::>(); container(column![ @@ -375,7 +375,7 @@ impl<'a> MessageLog { } } - fn map_irc_message( + fn view_irc_message( current_nickname: &str, irc_message: &IrcMessage, ) -> Option> {