From 83cb275a53dcdf94048b5df007fe784df3d8d637 Mon Sep 17 00:00:00 2001 From: pwnwriter Date: Sat, 2 Sep 2023 21:15:35 +0545 Subject: [PATCH] refactor(shoot): cargo-fmt all the way --- src/cli/screenshot.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/cli/screenshot.rs b/src/cli/screenshot.rs index 6d98efe..6cabd7c 100644 --- a/src/cli/screenshot.rs +++ b/src/cli/screenshot.rs @@ -84,21 +84,17 @@ pub async fn run( // Read URLs from file let file = std::fs::File::open(url)?; let lines = BufReader::new(file).lines().map_while(Result::ok); - urls = lines.collect(); // Assign the collected lines to 'urls' + urls = lines.collect(); } else { // URL is a single URL - urls = vec![url.clone()]; // Assign the single URL to 'urls' + urls = vec![url.clone()]; } } else { - // Handle the case where 'url' is None (you can decide what to do in this case) - // For now, let's assume it's an empty vector urls = vec![]; } } _ => { - // Handle other cases if needed - // For now, let's assume it's an empty vector urls = vec![]; } }