Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
zh522130 committed May 29, 2024
1 parent 05b450c commit f3b27cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iroh-net/src/magicsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,7 @@ impl Actor {
let LocalAddresses {
regular: mut ips,
loopback,
} = tokio::task::spawn_blocking(|| LocalAddresses::new())
} = tokio::task::spawn_blocking(LocalAddresses::new)
.await
.unwrap();

Expand Down
2 changes: 1 addition & 1 deletion iroh-net/src/net/interfaces/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct Win32_IP4RouteTable {

fn get_default_route() -> anyhow::Result<DefaultRouteDetails> {
let com_con = COMLibrary::new()?;
let wmi_con = WMIConnection::new(com_con.into())?;
let wmi_con = WMIConnection::new(com_con)?;

let query: HashMap<_, _> = [("Destination".into(), FilterValue::Str("0.0.0.0"))].into();
let route: Win32_IP4RouteTable = wmi_con
Expand Down

0 comments on commit f3b27cc

Please sign in to comment.