Skip to content

Commit

Permalink
Fix unnecessary qualification in x11rb
Browse files Browse the repository at this point in the history
Signed-off-by: Uli Schlachter <[email protected]>
  • Loading branch information
psychon committed Mar 17, 2024
1 parent f504223 commit daf3372
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x11rb/src/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions x11rb/src/rust_connection/packet_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
Expand Down

0 comments on commit daf3372

Please sign in to comment.