Skip to content

Commit ee60b44

Browse files
authored
Update mod.rs
1 parent 72208e7 commit ee60b44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/linux/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ impl LibinputInterface for Interface {
4646
.map_err(|err| err.raw_os_error().unwrap())?;
4747

4848
let mut name_buf = [0; 256];
49-
// SAFETY: buffer is not referenced after end of ioctl call
49+
// SAFETY: buffer pointer is not kept by the OS after end of ioctl call
50+
// so the mutable reference is effectively dead
5051
unsafe {
5152
eviocgname(fd, &mut name_buf).map_err(|_| -1)?;
5253
}

0 commit comments

Comments
 (0)