diff options
| author | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2024-01-04 05:46:23 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-01-05 17:02:12 +0100 |
| commit | 5131624541f6a9f456de347b62f69f4c5591c5c4 (patch) | |
| tree | 0d24ceecbf9299cb8c445d01a1c25f994d0067aa /talpid-core/src | |
| parent | 62df52bb1e7b81d44e0f7bd73ec2aa5882311db9 (diff) | |
| download | mullvadvpn-5131624541f6a9f456de347b62f69f4c5591c5c4.tar.xz mullvadvpn-5131624541f6a9f456de347b62f69f4c5591c5c4.zip | |
Run `cargo +nightly fmt`
Diffstat (limited to 'talpid-core/src')
| -rw-r--r-- | talpid-core/src/dns/windows/iphlpapi.rs | 6 | ||||
| -rw-r--r-- | talpid-core/src/firewall/macos.rs | 4 | ||||
| -rw-r--r-- | talpid-core/src/firewall/windows.rs | 7 |
3 files changed, 9 insertions, 8 deletions
diff --git a/talpid-core/src/dns/windows/iphlpapi.rs b/talpid-core/src/dns/windows/iphlpapi.rs index f9aba70065..e48b3b65f5 100644 --- a/talpid-core/src/dns/windows/iphlpapi.rs +++ b/talpid-core/src/dns/windows/iphlpapi.rs @@ -80,9 +80,9 @@ impl IphlpApi { return Err(Error::LoadDll(io::Error::last_os_error())); } - // This function is loaded at runtime since it may be unavailable. See the module-level docs. - // TODO: `windows_sys` can be used directly when support for versions older than Windows 10, - // 2004, is dropped. + // This function is loaded at runtime since it may be unavailable. See the module-level + // docs. TODO: `windows_sys` can be used directly when support for versions older + // than Windows 10, 2004, is dropped. let set_interface_dns_settings = unsafe { GetProcAddress(module, s!("SetInterfaceDnsSettings")) }; let set_interface_dns_settings = set_interface_dns_settings.ok_or_else(|| { diff --git a/talpid-core/src/firewall/macos.rs b/talpid-core/src/firewall/macos.rs index c851be507f..07e74f45ff 100644 --- a/talpid-core/src/firewall/macos.rs +++ b/talpid-core/src/firewall/macos.rs @@ -294,8 +294,8 @@ impl Firewall { builder.build() } - /// Produces a rule that allows traffic to flow to the API. Allows the app (or other apps if configured) - /// to reach the API in blocked states. + /// Produces a rule that allows traffic to flow to the API. Allows the app (or other apps if + /// configured) to reach the API in blocked states. fn get_allowed_endpoint_rule( &self, allowed_endpoint: &AllowedEndpoint, diff --git a/talpid-core/src/firewall/windows.rs b/talpid-core/src/firewall/windows.rs index f26102820a..c751a283a5 100644 --- a/talpid-core/src/firewall/windows.rs +++ b/talpid-core/src/firewall/windows.rs @@ -153,8 +153,8 @@ impl Firewall { protocol: WinFwProt::from(endpoint.endpoint.protocol), }; - // SAFETY: `endpoint1_ip`, `endpoint2_ip`, `endpoint1`, `endpoint2`, `relay_client_wstrs` must not be dropped - // until `WinFw_ApplyPolicyConnecting` has returned. + // SAFETY: `endpoint1_ip`, `endpoint2_ip`, `endpoint1`, `endpoint2`, `relay_client_wstrs` + // must not be dropped until `WinFw_ApplyPolicyConnecting` has returned. let relay_client_wstrs: Vec<_> = endpoint .clients @@ -274,7 +274,8 @@ impl Firewall { None => ptr::null(), }; - // SAFETY: `relay_client_wstrs` must not be dropped until `WinFw_ApplyPolicyConnected` has returned. + // SAFETY: `relay_client_wstrs` must not be dropped until `WinFw_ApplyPolicyConnected` has + // returned. let relay_client_wstrs: Vec<_> = endpoint .clients .iter() |
