diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2024-01-04 14:55:23 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2024-01-04 18:06:21 +0100 |
| commit | d0ac040f21d28debd40573e814073e68e721bf1e (patch) | |
| tree | f70cd8246317a272cf1f2c32cd2f4aedb6e075a7 /test/test-rpc/src | |
| parent | b3c7168e673eaeff30fca3553e0070fe9e9d86e2 (diff) | |
| download | mullvadvpn-d0ac040f21d28debd40573e814073e68e721bf1e.tar.xz mullvadvpn-d0ac040f21d28debd40573e814073e68e721bf1e.zip | |
Fix code not following new linting rules in testing framework
Diffstat (limited to 'test/test-rpc/src')
| -rw-r--r-- | test/test-rpc/src/logging.rs | 5 | ||||
| -rw-r--r-- | test/test-rpc/src/transport.rs | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/test-rpc/src/logging.rs b/test/test-rpc/src/logging.rs index 85f25c8060..a2156f6d9b 100644 --- a/test/test-rpc/src/logging.rs +++ b/test/test-rpc/src/logging.rs @@ -1,5 +1,6 @@ use colored::Colorize; use serde::{Deserialize, Serialize}; +use std::fmt; pub type Result<T> = std::result::Result<T, Error>; @@ -19,8 +20,8 @@ pub enum Output { Other(String), } -impl std::fmt::Display for Output { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { +impl fmt::Display for Output { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Output::Error(s) => f.write_fmt(format_args!("{}", s.as_str().red())), Output::Warning(s) => f.write_fmt(format_args!("{}", s.as_str().yellow())), diff --git a/test/test-rpc/src/transport.rs b/test/test-rpc/src/transport.rs index 291e08eb53..6a9f8b4588 100644 --- a/test/test-rpc/src/transport.rs +++ b/test/test-rpc/src/transport.rs @@ -107,7 +107,7 @@ impl ConnectionHandle { } /// Returns a future that is notified when `reset_connected_state` is called. - pub fn notified_reset(&self) -> Notified { + pub fn notified_reset(&self) -> Notified<'_> { self.reset_notify.notified() } |
