From c061b83d090a2a5f9bbd834ff8e5f5a91ec2fad4 Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 24 Aug 2024 14:37:50 +0200 Subject: [PATCH] Remove unnecessary mutable --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5a08ef9..752d9b7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,7 +58,7 @@ async fn main() { let remote_addr = SocketAddrV6::new(All_DHCP_Relay_Agents_and_Servers.parse().unwrap(), DHCP_Relay_Agent_and_Server_port, 0, scope_id); let mut msg = Message::new(MessageType::InformationRequest); - let mut msg_opts = msg.opts_mut(); + let msg_opts = msg.opts_mut(); //msg_opts.insert(DhcpOption::ClientId(Vec::from(duid))); msg_opts.insert(DhcpOption::ElapsedTime(0)); msg_opts.insert(DhcpOption::ORO(ORO { opts: vec![