Skip to content

Commit

Permalink
refactor(shoot): cargo-fmt all the way
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnwriter committed Sep 2, 2023
1 parent c5ca551 commit 83cb275
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/cli/screenshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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![];
}
}
Expand Down

0 comments on commit 83cb275

Please sign in to comment.