Skip to content

Commit

Permalink
Merge pull request #784 from gwenn/clippy
Browse files Browse the repository at this point in the history
Fix clippy warnings
  • Loading branch information
gwenn authored Jul 20, 2024
2 parents 99aeb43 + d045dcc commit 5b4ddef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tty/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ fn set_cursor_visibility(fd: RawFd, visible: bool) -> Result<Option<PosixCursorG
static mut SIGWINCH_PIPE: RawFd = -1;
#[cfg(not(feature = "signal-hook"))]
extern "C" fn sigwinch_handler(_: libc::c_int) {
let _ = unsafe { write(BorrowedFd::borrow_raw(SIGWINCH_PIPE), &[b's']) };
let _ = unsafe { write(BorrowedFd::borrow_raw(SIGWINCH_PIPE), b"s") };
}

#[derive(Clone, Debug)]
Expand Down Expand Up @@ -1503,7 +1503,7 @@ impl super::ExternalPrinter for ExternalPrinter {
.1
.send(msg)
.map_err(|_| io::Error::from(ErrorKind::Other))?; // FIXME
writer.write_all(&[b'm'])?;
writer.write_all(b"m")?;
writer.flush()?;
} else {
return Err(io::Error::from(ErrorKind::Other).into()); // FIXME
Expand Down

0 comments on commit 5b4ddef

Please sign in to comment.