Skip to content

Commit

Permalink
refactor: fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Saphereye committed Jun 25, 2024
1 parent db1a832 commit 90920c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lan-chat"
version = "0.12.4"
version = "0.12.5"
edition = "2021"
authors = ["Saphereye <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/networking/messaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn receive_message(stream: &mut TcpStream) -> Result<MessageType, Box<dyn st
Err(e) => {
return Err(format!(
"Couldn't read from stream properly. Receiving from: {}. Read error: {}",
stream.peer_addr().unwrap().to_string(),
stream.peer_addr()?,
e
)
.into());
Expand Down

0 comments on commit 90920c8

Please sign in to comment.