all: use not_matches macro
This commit is contained in:
parent
069369e7d8
commit
5b501dab5b
5 changed files with 11 additions and 11 deletions
|
|
@ -28,7 +28,7 @@ pub unsafe fn ioctl<T>(fd: c::c_int, request: c::c_ulong, t: &mut T) -> Result<c
|
|||
return Ok(ret);
|
||||
}
|
||||
let err = uapi::get_errno();
|
||||
if !matches!(err, c::EINTR | c::EAGAIN) {
|
||||
if not_matches!(err, c::EINTR | c::EAGAIN) {
|
||||
return Err(OsError(err));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue