Skip to content

Commit

Permalink
Removed a to_owned call (It still allocates a String internally).
Browse files Browse the repository at this point in the history
  • Loading branch information
Plasticcaz committed Nov 24, 2018
1 parent 8921bc1 commit 00b422d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amethyst_network/src/network_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ where
socket.set_nonblocking(true).map_err(|_| {
Error::new(
ErrorKind::Other,
"Unable to set `UdpSocket` to non-blocking mode".to_owned(),
"Unable to set `UdpSocket` to non-blocking mode",
)
})?;

Expand Down

0 comments on commit 00b422d

Please sign in to comment.