From db1ce18153367185f0a3175c4983ad331caf6fb9 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Sat, 5 Oct 2024 11:56:57 +0900 Subject: [PATCH] chore: code tidy up --- libharuhishot/src/wlrshotbasestate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libharuhishot/src/wlrshotbasestate.rs b/libharuhishot/src/wlrshotbasestate.rs index a024bda..5748809 100644 --- a/libharuhishot/src/wlrshotbasestate.rs +++ b/libharuhishot/src/wlrshotbasestate.rs @@ -79,7 +79,7 @@ impl HaruhiShotState { event_queue .roundtrip(&mut state) .map_err(|_| HaruhiError::InitFailed("Error During first roundtrip".to_string()))?; - let xdg_output_manager = state.xdg_output_manager.clone().unwrap(); + let xdg_output_manager = state.xdg_output_manager.as_ref().unwrap(); for display in state.displays.iter() { xdg_output_manager.get_xdg_output(display, &qh, ()); }