Rename map_irc_message to view_irc_message

This commit is contained in:
Sijmen 2023-12-01 04:17:12 +01:00
parent 03f0ea717a
commit 66a410083e
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48

View file

@ -349,7 +349,7 @@ impl<'a> MessageLog {
let messages = channel let messages = channel
.messages .messages
.iter() .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::<Vec<_>>(); .collect::<Vec<_>>();
container(column![ container(column![
@ -375,7 +375,7 @@ impl<'a> MessageLog {
} }
} }
fn map_irc_message( fn view_irc_message(
current_nickname: &str, current_nickname: &str,
irc_message: &IrcMessage, irc_message: &IrcMessage,
) -> Option<iced::Element<'a, crate::ui_message::UiMessage>> { ) -> Option<iced::Element<'a, crate::ui_message::UiMessage>> {