Skip to content

Commit 517ffed

Browse files
arihant2mathcoolreader18
authored andcommitted
fix clippy lint
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
1 parent 38a6a8d commit 517ffed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vm/src/stdlib/winreg.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ mod winreg {
9898

9999
#[pymethod(magic)]
100100
fn bool(&self) -> bool {
101-
self.key().raw_handle() != core::ptr::null_mut()
101+
!self.key().raw_handle().is_null()
102102
}
103103
#[pymethod(magic)]
104104
fn enter(zelf: PyRef<Self>) -> PyRef<Self> {

0 commit comments

Comments
 (0)