all: use not_matches macro
This commit is contained in:
parent
069369e7d8
commit
5b501dab5b
5 changed files with 11 additions and 11 deletions
|
|
@ -74,7 +74,7 @@ impl UdmabufHolder {
|
|||
self.logged.exec(|| {
|
||||
log::warn!("Unable to open /dev/udmabuf: {}", ErrorFmt(&e));
|
||||
});
|
||||
if !matches!(e, UdmabufError::Open(OsError(c::EPERM))) {
|
||||
if not_matches!(e, UdmabufError::Open(OsError(c::EPERM))) {
|
||||
self.udmabuf.set(Some(None));
|
||||
}
|
||||
None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue