mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-09 07:31:28 +03:00
fix clippy warnings from rust 1.87 (#301)
This commit is contained in:
committed by
GitHub
parent
b8063a8138
commit
37a4e236b8
@@ -23,7 +23,7 @@ impl X11Emulation {
|
||||
pub(crate) fn new() -> Result<Self, X11EmulationCreationError> {
|
||||
let display = unsafe {
|
||||
match xlib::XOpenDisplay(ptr::null()) {
|
||||
d if d == ptr::null::<xlib::Display>() as *mut xlib::Display => {
|
||||
d if std::ptr::eq(d, ptr::null_mut::<xlib::Display>()) => {
|
||||
Err(X11EmulationCreationError::OpenDisplay)
|
||||
}
|
||||
display => Ok(display),
|
||||
|
||||
Reference in New Issue
Block a user