add unused_must_use lint

This commit is contained in:
auronandace
2026-02-11 09:48:47 +00:00
parent 395c6ba33b
commit a3c67e898d
18 changed files with 43 additions and 43 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ pub(super) unsafe fn openpty(name: &mut [u8]) -> Result<(c_int, c_int), ()> {
}
let mut cursor = Cursor::new(name);
write!(cursor, "/dev/pts/{}\0", ptn);
if let Ok(()) = write!(cursor, "/dev/pts/{}\0", ptn) {}; // TODO handle error
let slave = unsafe {
fcntl::open(