all: address clippy lints
This commit is contained in:
parent
558fe3d3ce
commit
e2f31646f2
19 changed files with 25 additions and 26 deletions
|
|
@ -6,7 +6,6 @@ use {
|
|||
std::ptr,
|
||||
};
|
||||
|
||||
#[expect(clippy::manual_non_exhaustive)]
|
||||
pub struct ImgCopyWork {
|
||||
pub src: *mut u8,
|
||||
pub dst: *mut u8,
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ impl Udev {
|
|||
}
|
||||
|
||||
pub fn create_monitor(self: &Rc<Self>) -> Result<UdevMonitor, UdevError> {
|
||||
let res = unsafe { udev_monitor_new_from_netlink(self.udev, "udev\0".as_ptr() as _) };
|
||||
let res = unsafe { udev_monitor_new_from_netlink(self.udev, c"udev".as_ptr() as _) };
|
||||
if res.is_null() {
|
||||
return Err(UdevError::NewMonitor(Errno::default().into()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue