From 3caa8d2cebc759d7bdec9ce1b430d0beeced4f45 Mon Sep 17 00:00:00 2001 From: epi Date: Wed, 9 Dec 2020 07:52:33 -0600 Subject: [PATCH] comment lint and corrections --- src/main.rs | 4 ++-- src/scan_manager.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index cec6aba..cf9b1ff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -180,8 +180,8 @@ async fn get_targets() -> FeroxResult> { targets.push(line?); } } else if CONFIGURATION.resumed { - // resume-from can't be used with any other flag, making it mutually exclusive from either - // of the other two options + // resume-from can't be used with --url, and --stdin is marked false for every resumed + // scan, making it mutually exclusive from either of the other two options if let Ok(scans) = SCANNED_URLS.scans.lock() { for scan in scans.iter() { // SCANNED_URLS gets deserialized scans added to it at program start if --resume-from diff --git a/src/scan_manager.rs b/src/scan_manager.rs index f40f343..d7059f3 100644 --- a/src/scan_manager.rs +++ b/src/scan_manager.rs @@ -668,7 +668,6 @@ pub fn resume_scan(filename: &str) -> Configuration { std::process::exit(1); }); - // let scans: FeroxScans = serde_json::from_value(state.get("scans").unwrap().clone()).unwrap(); if let Some(responses) = state.get("responses") { if let Some(arr_responses) = responses.as_array() { for response in arr_responses {