From ca908dea123f7efc2757772b02d856c3ad317429 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sat, 25 May 2024 19:10:05 +0200 Subject: [PATCH] Change from to try_from --- crates/projection-irc/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/projection-irc/src/lib.rs b/crates/projection-irc/src/lib.rs index 9331809..4bceaf5 100644 --- a/crates/projection-irc/src/lib.rs +++ b/crates/projection-irc/src/lib.rs @@ -893,7 +893,7 @@ async fn handle_join( ) -> Result<()> { match chan { Chan::Global(chan_name) => { - let room_id = RoomId::from(chan_name.clone())?; + let room_id = RoomId::try_from(chan_name.clone())?; match user_handle.join_room(room_id).await? { JoinResult::Success(room_info) => { produce_on_join_cmd_messages(&config, &user, chan, &room_info, writer).await?;