Skip to content

Commit

Permalink
fix unused mut in udp example
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Sep 14, 2020
1 parent 7a43d9c commit 5533179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/udp-client.rs
Expand Up @@ -55,7 +55,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
}
.parse()?;

let mut socket = UdpSocket::bind(local_addr).await?;
let socket = UdpSocket::bind(local_addr).await?;
const MAX_DATAGRAM_SIZE: usize = 65_507;
socket.connect(&remote_addr).await?;
let data = get_stdin_data()?;
Expand Down

0 comments on commit 5533179

Please sign in to comment.