From 3247d35b7eb7aa4c1bb684c640b07dc968f9a036 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Thu, 10 Jul 2025 01:05:02 +0200 Subject: [PATCH] Fix clippy lints https://github.com/EFForg/rayhunter/pull/451 is failing because we got auto-upgraded to a new clippy, which lints against more things --- installer/src/util.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/src/util.rs b/installer/src/util.rs index 1974d90..64e45ba 100644 --- a/installer/src/util.rs +++ b/installer/src/util.rs @@ -92,16 +92,16 @@ pub async fn telnet_send_file(addr: SocketAddr, filename: &str, payload: &[u8]) pub async fn send_file(admin_ip: &str, local_path: &str, remote_path: &str) -> Result<()> { let file_content = std::fs::read(local_path) - .with_context(|| format!("Failed to read local file: {}", local_path))?; + .with_context(|| format!("Failed to read local file: {local_path}"))?; println!("Connecting to {admin_ip}"); let addr = SocketAddr::from_str(&format!("{admin_ip}:23")) - .with_context(|| format!("Invalid IP address: {}", admin_ip))?; + .with_context(|| format!("Invalid IP address: {admin_ip}"))?; telnet_send_file(addr, remote_path, &file_content) .await - .with_context(|| format!("Failed to send file {} to {}", local_path, remote_path))?; + .with_context(|| format!("Failed to send file {local_path} to {remote_path}"))?; - println!("Successfully sent {} to {}", local_path, remote_path); + println!("Successfully sent {local_path} to {remote_path}"); Ok(()) }