From 9000544bc68954ea95ab215bcd222e0f7cbf467b Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Wed, 20 Dec 2023 18:21:26 +0800 Subject: [PATCH] chore: need less clone --- src/screenshot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screenshot.rs b/src/screenshot.rs index 75b7386..b062724 100644 --- a/src/screenshot.rs +++ b/src/screenshot.rs @@ -51,7 +51,7 @@ impl ScreenShotBackend { .map_err(|_| zbus::Error::Failure("Cannot update outputInfos".to_string()))?; let image_buffer = if options.interactive { - let wayinfos = wayshot_connection.get_all_outputs().clone(); + let wayinfos = wayshot_connection.get_all_outputs(); let screen_infos = wayinfos .iter() .map(|screen| ScreenInfo {