We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5171e71 commit 7ee0b70Copy full SHA for 7ee0b70
netwatch/src/netmon/windows.rs
@@ -4,7 +4,7 @@ use libc::c_void;
4
use tokio::sync::mpsc;
5
use tracing::{trace, warn};
6
use windows::Win32::{
7
- Foundation::{BOOLEAN, HANDLE as Handle},
+ Foundation::HANDLE as Handle,
8
NetworkManagement::IpHelper::{
9
MIB_IPFORWARD_ROW2, MIB_NOTIFICATION_TYPE, MIB_UNICASTIPADDRESS_ROW,
10
},
@@ -111,7 +111,7 @@ impl CallbackHandler {
111
windows::Win32::Networking::WinSock::AF_UNSPEC,
112
Some(unicast_change_callback),
113
Some(Arc::as_ptr(&cb) as *const c_void), // context
114
- BOOLEAN::from(false), // initial notification,
+ false, // initial notification,
115
&mut handle,
116
)
117
.ok()?;
@@ -153,7 +153,7 @@ impl CallbackHandler {
153
154
Some(route_change_callback),
155
Arc::as_ptr(&cb) as *const c_void, // context
156
157
158
159
0 commit comments