From 48d3826ffff9ab1b64b8598af37637e7fc991628 Mon Sep 17 00:00:00 2001 From: holly sparkles Date: Wed, 20 Dec 2023 21:35:00 +0100 Subject: [PATCH] refactor: `capture_all()` is now `capture_all_displays()` --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 61020e1..5155e22 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,11 +11,11 @@ mod imaging; fn main() { let args = cli::Args::parse(); - capture_all(args.out, args.filename_format.unwrap_or_default()); + capture_all_displays(args.out, args.filename_format.unwrap_or_default()); } /// Captures a screenshot of all active displays and writes the resulting image to disk. -fn capture_all(out_dir: String, filename_format: String) { +fn capture_all_displays(out_dir: String, filename_format: String) { let captures: Vec<_> = graphics::Display::get_displays() .iter() .filter_map(|screen| screen.capture().ok()) -- libgit2 1.7.2