Skip to content

Commit 7ee0b70

Browse files
no more BOOLEAN
1 parent 5171e71 commit 7ee0b70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netwatch/src/netmon/windows.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use libc::c_void;
44
use tokio::sync::mpsc;
55
use tracing::{trace, warn};
66
use windows::Win32::{
7-
Foundation::{BOOLEAN, HANDLE as Handle},
7+
Foundation::HANDLE as Handle,
88
NetworkManagement::IpHelper::{
99
MIB_IPFORWARD_ROW2, MIB_NOTIFICATION_TYPE, MIB_UNICASTIPADDRESS_ROW,
1010
},
@@ -111,7 +111,7 @@ impl CallbackHandler {
111111
windows::Win32::Networking::WinSock::AF_UNSPEC,
112112
Some(unicast_change_callback),
113113
Some(Arc::as_ptr(&cb) as *const c_void), // context
114-
BOOLEAN::from(false), // initial notification,
114+
false, // initial notification,
115115
&mut handle,
116116
)
117117
.ok()?;
@@ -153,7 +153,7 @@ impl CallbackHandler {
153153
windows::Win32::Networking::WinSock::AF_UNSPEC,
154154
Some(route_change_callback),
155155
Arc::as_ptr(&cb) as *const c_void, // context
156-
BOOLEAN::from(false), // initial notification,
156+
false, // initial notification,
157157
&mut handle,
158158
)
159159
.ok()?;

0 commit comments

Comments
 (0)