diff --git a/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs b/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs index 8a74a8c2..d8c6decf 100644 --- a/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs +++ b/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs @@ -840,7 +840,7 @@ pub enum XdgToplevelError { efrom!(XdgToplevelError, ClientError); pub fn map_resize_edges(edge: u32) -> Option { - if !matches!(edge, 0 | 1 | 2 | 4 | 5 | 6 | 8 | 9 | 10) { + if not_matches!(edge, 0 | 1 | 2 | 4 | 5 | 6 | 8 | 9 | 10) { return None; } Some(ResizeEdges { diff --git a/src/io_uring.rs b/src/io_uring.rs index 0532d072..49f5a2ea 100644 --- a/src/io_uring.rs +++ b/src/io_uring.rs @@ -380,7 +380,7 @@ impl IoUringData { to_submit -= n; } Err(e) => { - if !matches!(e.0, c::EAGAIN | c::EBUSY | c::EINTR) { + if not_matches!(e.0, c::EAGAIN | c::EBUSY | c::EINTR) { return Err(IoUringError::Enter(e)); } } diff --git a/src/udmabuf.rs b/src/udmabuf.rs index 9e78085d..4bff5667 100644 --- a/src/udmabuf.rs +++ b/src/udmabuf.rs @@ -74,7 +74,7 @@ impl UdmabufHolder { self.logged.exec(|| { log::warn!("Unable to open /dev/udmabuf: {}", ErrorFmt(&e)); }); - if !matches!(e, UdmabufError::Open(OsError(c::EPERM))) { + if not_matches!(e, UdmabufError::Open(OsError(c::EPERM))) { self.udmabuf.set(Some(None)); } None diff --git a/src/video/drm/sys.rs b/src/video/drm/sys.rs index 92d4356f..6892b7c7 100644 --- a/src/video/drm/sys.rs +++ b/src/video/drm/sys.rs @@ -28,7 +28,7 @@ pub unsafe fn ioctl(fd: c::c_int, request: c::c_ulong, t: &mut T) -> Result(data.window_id, ATOM_WM_TRANSIENT_FOR, ATOM_WINDOW, &mut buf) .await { - if !matches!(e, XconError::PropertyUnavailable) { + if not_matches!(e, XconError::PropertyUnavailable) { log::error!( "Could not retrieve WM_TRANSIENT_FOR property: {}", ErrorFmt(e) @@ -1256,7 +1256,7 @@ impl Wm { .get_property::(data.window_id, self.atoms.WM_PROTOCOLS, ATOM_ATOM, &mut buf) .await { - if !matches!(e, XconError::PropertyUnavailable) { + if not_matches!(e, XconError::PropertyUnavailable) { log::error!("Could not retrieve WM_PROTOCOLS property: {}", ErrorFmt(e)); } return; @@ -1276,7 +1276,7 @@ impl Wm { .get_property::(data.window_id, self.atoms.WM_HINTS, 0, &mut buf) .await { - if !matches!(e, XconError::PropertyUnavailable) { + if not_matches!(e, XconError::PropertyUnavailable) { log::error!("Could not retrieve WM_HINTS property: {}", ErrorFmt(e)); } data.info.icccm_hints.input.set(true); @@ -1319,7 +1319,7 @@ impl Wm { ) .await { - if !matches!(e, XconError::PropertyUnavailable) { + if not_matches!(e, XconError::PropertyUnavailable) { log::error!( "Could not retrieve WM_NORMAL_HINTS property: {}", ErrorFmt(e) @@ -1358,7 +1358,7 @@ impl Wm { .get_property::(data.window_id, self.atoms._MOTIF_WM_HINTS, 0, &mut buf) .await { - if !matches!(e, XconError::PropertyUnavailable) { + if not_matches!(e, XconError::PropertyUnavailable) { log::error!( "Could not retrieve _MOTIF_WM_HINTS property: {}", ErrorFmt(e) @@ -1413,7 +1413,7 @@ impl Wm { .get_property::(data.window_id, self.atoms._NET_WM_STATE, 0, &mut buf) .await { - if !matches!(e, XconError::PropertyUnavailable) { + if not_matches!(e, XconError::PropertyUnavailable) { log::error!("Could not retrieve _NET_WM_STATE property: {}", ErrorFmt(e)); } return; @@ -1446,7 +1446,7 @@ impl Wm { ) .await { - if !matches!(e, XconError::PropertyUnavailable) { + if not_matches!(e, XconError::PropertyUnavailable) { log::error!( "Could not retrieve _NET_WM_WINDOW_TYPE property: {}", ErrorFmt(e)