From d351be69615df7a1bc731d379a4931effd53bfd8 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 11 Aug 2022 22:46:51 +0200 Subject: [PATCH] Formatting --- src/ipv4.rs | 2 +- src/scanner.rs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ipv4.rs b/src/ipv4.rs index ae2a50f..5a55216 100644 --- a/src/ipv4.rs +++ b/src/ipv4.rs @@ -71,7 +71,7 @@ impl IPv4Range { Self { id_start: from, id_end: to, - id_ignore: id_ignore.to_vec() + id_ignore: id_ignore.to_vec(), } } } diff --git a/src/scanner.rs b/src/scanner.rs index 8ef6902..9f4d126 100644 --- a/src/scanner.rs +++ b/src/scanner.rs @@ -70,12 +70,7 @@ fn start_scan( let id_ignorelist = ignorelist.unwrap().cloned().unwrap_or_else(Vec::new()); // Create a worker - let worker = create_scan_worker( - thread_id, - ips_per_thread, - target_port, - id_ignorelist - ); + let worker = create_scan_worker(thread_id, ips_per_thread, target_port, id_ignorelist); threads.push(worker); }