From 6dacc3a52fb61971ca878261d436f7a15c766e39 Mon Sep 17 00:00:00 2001 From: Keenan Tims Date: Thu, 13 Feb 2025 18:35:55 -0800 Subject: [PATCH] clippies --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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