mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-19 19:20:58 +03:00
Compare commits
1 Commits
update-cac
...
fix-clippy
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
563e39c383 |
@@ -813,7 +813,7 @@ impl Dispatch<WlPointer, ()> for State {
|
|||||||
})),
|
})),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
wl_pointer::Event::Frame {} => {
|
wl_pointer::Event::Frame => {
|
||||||
// TODO properly handle frame events
|
// TODO properly handle frame events
|
||||||
// we simply insert a frame event on the client side
|
// we simply insert a frame event on the client side
|
||||||
// after each event for now
|
// after each event for now
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ impl X11Emulation {
|
|||||||
pub(crate) fn new() -> Result<Self, X11EmulationCreationError> {
|
pub(crate) fn new() -> Result<Self, X11EmulationCreationError> {
|
||||||
let display = unsafe {
|
let display = unsafe {
|
||||||
match xlib::XOpenDisplay(ptr::null()) {
|
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)
|
Err(X11EmulationCreationError::OpenDisplay)
|
||||||
}
|
}
|
||||||
display => Ok(display),
|
display => Ok(display),
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ impl Emulation for DesktopPortalEmulation<'_> {
|
|||||||
|
|
||||||
impl AsyncDrop for DesktopPortalEmulation<'_> {
|
impl AsyncDrop for DesktopPortalEmulation<'_> {
|
||||||
#[doc = r" Perform the async cleanup."]
|
#[doc = r" Perform the async cleanup."]
|
||||||
#[must_use]
|
|
||||||
#[allow(clippy::type_complexity, clippy::type_repetition_in_bounds)]
|
#[allow(clippy::type_complexity, clippy::type_repetition_in_bounds)]
|
||||||
fn async_drop<'async_trait>(
|
fn async_drop<'async_trait>(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user