diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2023-12-11 16:37:35 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2023-12-15 09:45:08 +0100 |
| commit | 8a053ab50624892dbefcb6cd386aee650651a48b (patch) | |
| tree | cfc78253895980bfe403c05087a8e5cb1620be6c /test/test-runner | |
| parent | 8686fc2792906c8e5cb0dcc49845efd7690f98fa (diff) | |
| download | mullvadvpn-8a053ab50624892dbefcb6cd386aee650651a48b.tar.xz mullvadvpn-8a053ab50624892dbefcb6cd386aee650651a48b.zip | |
[Clippy] Fix unused `async`
Diffstat (limited to 'test/test-runner')
| -rw-r--r-- | test/test-runner/src/main.rs | 2 | ||||
| -rw-r--r-- | test/test-runner/src/net.rs | 4 | ||||
| -rw-r--r-- | test/test-runner/src/sys.rs | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/test/test-runner/src/main.rs b/test/test-runner/src/main.rs index fe85e6f89f..c67876526b 100644 --- a/test/test-runner/src/main.rs +++ b/test/test-runner/src/main.rs @@ -177,7 +177,7 @@ impl Service for TestServer { _: context::Context, interface: String, ) -> Result<IpAddr, test_rpc::Error> { - net::get_interface_ip(&interface).await + net::get_interface_ip(&interface) } async fn get_default_interface(self, _: context::Context) -> Result<String, test_rpc::Error> { diff --git a/test/test-runner/src/net.rs b/test/test-runner/src/net.rs index a4a7a2db47..1de728a744 100644 --- a/test/test-runner/src/net.rs +++ b/test/test-runner/src/net.rs @@ -202,7 +202,7 @@ pub async fn send_ping( } #[cfg(unix)] -pub async fn get_interface_ip(interface: &str) -> Result<IpAddr, test_rpc::Error> { +pub fn get_interface_ip(interface: &str) -> Result<IpAddr, test_rpc::Error> { // TODO: IPv6 use std::net::Ipv4Addr; @@ -225,7 +225,7 @@ pub async fn get_interface_ip(interface: &str) -> Result<IpAddr, test_rpc::Error } #[cfg(target_os = "windows")] -pub async fn get_interface_ip(interface: &str) -> Result<IpAddr, test_rpc::Error> { +pub fn get_interface_ip(interface: &str) -> Result<IpAddr, test_rpc::Error> { // TODO: IPv6 get_interface_ip_for_family(interface, talpid_windows::net::AddressFamily::Ipv4) diff --git a/test/test-runner/src/sys.rs b/test/test-runner/src/sys.rs index 7363e38e72..ecc767d398 100644 --- a/test/test-runner/src/sys.rs +++ b/test/test-runner/src/sys.rs @@ -379,6 +379,7 @@ pub async fn set_daemon_log_level(verbosity_level: Verbosity) -> Result<(), test } #[cfg(target_os = "macos")] +#[allow(clippy::unused_async)] pub async fn set_daemon_log_level(_verbosity_level: Verbosity) -> Result<(), test_rpc::Error> { // TODO: Not implemented log::warn!("Setting log level is not implemented on macOS"); |
