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..b373c182 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 { @@ -81,7 +81,7 @@ impl PacketReader { )); } Ok(n) => n, - Err(ref e) if e.kind() == io::ErrorKind::WouldBlock => break, + Err(ref e) if e.kind() == ErrorKind::WouldBlock => break, Err(e) => return Err(e), }; crate::trace!("Read {} bytes into read buffer", nread);