From 41d959e6708e041c5ca5f9d02f59d1666b36a447 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Mar 2024 12:49:27 +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 | 6 +++--- 2 files changed, 5 insertions(+), 5 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..b29d6ebb 100644 --- a/x11rb/src/rust_connection/packet_reader.rs +++ b/x11rb/src/rust_connection/packet_reader.rs @@ -1,7 +1,7 @@ //! Read X11 packets from a reader use std::io::{Error, ErrorKind, Result}; -use std::{cmp, fmt, io}; +use std::{cmp, fmt}; use super::Stream; use crate::utils::RawFdContainer; @@ -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);