diff options
Diffstat (limited to 'crates/windows-kernel-rs/src/device.rs')
| -rw-r--r-- | crates/windows-kernel-rs/src/device.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crates/windows-kernel-rs/src/device.rs b/crates/windows-kernel-rs/src/device.rs index 2ccb607..5c36d3a 100644 --- a/crates/windows-kernel-rs/src/device.rs +++ b/crates/windows-kernel-rs/src/device.rs @@ -30,10 +30,11 @@ pub enum Access { impl Access { pub fn is_exclusive(&self) -> bool { - match *self { - Access::Exclusive => true, - _ => false, - } + // match *self { + // Access::Exclusive => true, + // _ => false, + // } + matches!(*self, Access::Exclusive) } } |