From b1d96fc7cb8e40bca3fac8fb6f0e3ad8faef5419 Mon Sep 17 00:00:00 2001 From: grufkork Date: Wed, 25 Oct 2023 16:04:41 +0200 Subject: [PATCH] Cargo Clippy --- src/main.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 03c786c..d725c42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -285,19 +285,16 @@ Available versions:", println!("Connecting from: {}", source_address); println!("Connecting to: {}", target_address); - println!(""); + println!(); println!( "Press i/k to change offset in milliseconds. c to quit. -h flag for help and version info." ); - println!(""); + println!(); let socket = match UdpSocket::bind(&source_address) { Ok(socket) => socket, Err(e) => { - println!( - "Failed to bind to address {source_address}. Error:\n{}", - e.to_string() - ); + println!("Failed to bind to address {source_address}. Error:\n{}", e); return; } }; @@ -306,7 +303,7 @@ Available versions:", Err(e) => { println!( "Failed to open socket to address {target_address}. Error:\n{}", - e.to_string() + e ); return; }