From 72525297770e281e2ed1799bb8b4df9a03ad0777 Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Wed, 31 Jan 2024 22:35:11 -0800 Subject: [PATCH] shorthanding --- src/state.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/state.rs b/src/state.rs index e70cde0..30ab795 100644 --- a/src/state.rs +++ b/src/state.rs @@ -31,9 +31,9 @@ impl<'a, C: Connection> WmState<'a, C> { let wm_delete_window = conn.intern_atom(false, b"WM_DELETE_WINDOW")?; Ok(WmState { - conn: conn, - screen_num: screen_num, - black_gc: black_gc, + conn, + screen_num, + black_gc, windows: Vec::default(), wm_protocols: wm_protocols.reply()?.atom, wm_delete_window: wm_delete_window.reply()?.atom,