diff --git a/src/main.rs b/src/main.rs index 991bbb9..642c80a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,5 @@ -use clap; use std::fmt; -use std::net::{IpAddr, Ipv4Addr, SocketAddr, UdpSocket}; -use std::ops::Index; +use std::net::{IpAddr, UdpSocket}; use crc32fast::hash; use log::warn; @@ -74,7 +72,7 @@ impl TxId { let fp = fingerprint(&buf); buf.extend(ATTR_NUM_FINGERPRINT.to_be_bytes()); - buf.extend((4 as u16).to_be_bytes()); + buf.extend(4_u16.to_be_bytes()); buf.extend(&fp.to_be_bytes()); buf