diff --git a/Cargo.lock b/Cargo.lock index af808d9..6f2b8ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -313,7 +313,7 @@ checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "lan-chat" -version = "0.12.4" +version = "0.12.5" dependencies = [ "bincode", "clap", diff --git a/Cargo.toml b/Cargo.toml index e5e16c0..71eee1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lan-chat" -version = "0.12.4" +version = "0.12.5" edition = "2021" authors = ["Saphereye "] license = "MIT" diff --git a/src/networking/messaging.rs b/src/networking/messaging.rs index 634ce3d..952ebd0 100644 --- a/src/networking/messaging.rs +++ b/src/networking/messaging.rs @@ -53,7 +53,7 @@ pub fn receive_message(stream: &mut TcpStream) -> Result { return Err(format!( "Couldn't read from stream properly. Receiving from: {}. Read error: {}", - stream.peer_addr().unwrap().to_string(), + stream.peer_addr()?, e ) .into());