Skip to content

Commit

Permalink
fix android CI again
Browse files Browse the repository at this point in the history
  • Loading branch information
satakuma committed Nov 3, 2023
1 parent f41dcd8 commit 58b0a11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tokio/src/net/unix/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1326,9 +1326,7 @@ fn is_pipe(fd: BorrowedFd<'_>) -> io::Result<bool> {
if r == -1 {
Err(io::Error::last_os_error())
} else {
// on some platforms `st_mode` is larger than `S_IFMT` and `S_IFIFO`.
#[allow(clippy::useless_conversion)]
Ok((stat.st_mode & libc::S_IFMT) == libc::S_IFIFO.into())
Ok((stat.st_mode as libc::mode_t & libc::S_IFMT) == libc::S_IFIFO)
}
}

Expand Down

0 comments on commit 58b0a11

Please sign in to comment.