shorthanding

This commit is contained in:
Zynh0722 2024-01-31 22:35:11 -08:00
parent 456f56f5b5
commit 7252529777

View file

@ -31,9 +31,9 @@ impl<'a, C: Connection> WmState<'a, C> {
let wm_delete_window = conn.intern_atom(false, b"WM_DELETE_WINDOW")?; let wm_delete_window = conn.intern_atom(false, b"WM_DELETE_WINDOW")?;
Ok(WmState { Ok(WmState {
conn: conn, conn,
screen_num: screen_num, screen_num,
black_gc: black_gc, black_gc,
windows: Vec::default(), windows: Vec::default(),
wm_protocols: wm_protocols.reply()?.atom, wm_protocols: wm_protocols.reply()?.atom,
wm_delete_window: wm_delete_window.reply()?.atom, wm_delete_window: wm_delete_window.reply()?.atom,