From de5ad7e6b084ef43ec2c4d556be95957e667d64f Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Mar 2024 12:30:43 +0100 Subject: [PATCH] Fix unnecessary qualification in x11rb Signed-off-by: Uli Schlachter --- x11rb/src/properties.rs | 4 ++-- x11rb/src/rust_connection/packet_reader.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x11rb/src/properties.rs b/x11rb/src/properties.rs index 45d2a2bf..eb5a1942 100644 --- a/x11rb/src/properties.rs +++ b/x11rb/src/properties.rs @@ -570,8 +570,8 @@ impl WmHints { conn, xproto::PropMode::REPLACE, window, - xproto::AtomEnum::WM_HINTS, - xproto::AtomEnum::WM_HINTS, + AtomEnum::WM_HINTS, + AtomEnum::WM_HINTS, 32, NUM_WM_HINTS_ELEMENTS, &data, diff --git a/x11rb/src/rust_connection/packet_reader.rs b/x11rb/src/rust_connection/packet_reader.rs index 62477e57..78ed382c 100644 --- a/x11rb/src/rust_connection/packet_reader.rs +++ b/x11rb/src/rust_connection/packet_reader.rs @@ -67,7 +67,7 @@ impl PacketReader { out_packets.push(packet); } } - Err(ref e) if e.kind() == io::ErrorKind::WouldBlock => break, + Err(ref e) if e.kind() == ErrorKind::WouldBlock => break, Err(e) => return Err(e), } } else {