From 0420e9994b97efe6974e3c9f7136a2a3010e32d2 Mon Sep 17 00:00:00 2001 From: mattbk Date: Wed, 1 Oct 2025 14:18:44 -0500 Subject: [PATCH] Change suggested by cargo build. --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ee922ef..ef24ca0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use std::net::UdpSocket; fn main() -> std::io::Result<()> { let socket_result: Result = UdpSocket::bind("127.0.0.1:7878"); - let mut socket: UdpSocket = match socket_result { + let socket: UdpSocket = match socket_result { Ok(s) => s, Err(e) => { println!("Failed to bind socket: {}", e); @@ -28,7 +28,6 @@ fn main() -> std::io::Result<()> { String::from_utf8_lossy(&buffer[..bytes_received]) ); - // Echo the data back to the client socket.send_to(&buffer[..bytes_received], src_addr)?; }