Explorar el Código

Fix unused mut in examples/ping.rs. NFC.

whitequark hace 6 años
padre
commit
a4d0a7e39c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/ping.rs

+ 1 - 1
examples/ping.rs

@@ -35,7 +35,7 @@ macro_rules! send_icmp_ping {
             .send(icmp_repr.buffer_len(), $remote_addr)
             .unwrap();
 
-        let mut icmp_packet = $packet_type::new_unchecked(icmp_payload);
+        let icmp_packet = $packet_type::new_unchecked(icmp_payload);
         (icmp_repr, icmp_packet)
     }}
 }