Skip to content

Commit

Permalink
Cargo Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
grufkork committed Oct 25, 2023
1 parent 5a73528 commit b1d96fc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand All @@ -306,7 +303,7 @@ Available versions:",
Err(e) => {
println!(
"Failed to open socket to address {target_address}. Error:\n{}",
e.to_string()
e
);
return;
}
Expand Down

0 comments on commit b1d96fc

Please sign in to comment.