summaryrefslogtreecommitdiffhomepage
path: root/test/test-runner/src/logging.rs
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2025-07-09 12:51:42 +0200
committerLinus Färnstrand <linus@mullvad.net>2025-07-09 12:51:42 +0200
commitbef9cb8441e1369865ff345550ebb9c528dd3aca (patch)
treefcac2cea9e6f7c6e270bedbdc5a81b0c0096f555 /test/test-runner/src/logging.rs
parentb21c24e98078145b19b6fc0eb75163e4b4364253 (diff)
parent485d6b1b81ddf9a038dc93c4ed0f000d9aff107b (diff)
downloadmullvadvpn-bef9cb8441e1369865ff345550ebb9c528dd3aca.tar.xz
mullvadvpn-bef9cb8441e1369865ff345550ebb9c528dd3aca.zip
Merge branch 'fix-rust-warnings-prepare-1.88'
Diffstat (limited to 'test/test-runner/src/logging.rs')
-rw-r--r--test/test-runner/src/logging.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-runner/src/logging.rs b/test/test-runner/src/logging.rs
index 6ca19c2c63..bab3693c34 100644
--- a/test/test-runner/src/logging.rs
+++ b/test/test-runner/src/logging.rs
@@ -76,7 +76,7 @@ pub async fn get_mullvad_app_logs() -> LogOutput {
async fn read_settings_file() -> Result<String, Error> {
let mut settings_path = mullvad_paths::get_default_settings_dir()
- .map_err(|error| Error::Logs(format!("{}", error)))?;
+ .map_err(|error| Error::Logs(format!("{error}")))?;
settings_path.push("settings.json");
read_truncated(&settings_path, None)
.await
@@ -85,10 +85,10 @@ async fn read_settings_file() -> Result<String, Error> {
async fn read_log_files() -> Result<Vec<Result<LogFile, Error>>, Error> {
let log_dir =
- mullvad_paths::get_default_log_dir().map_err(|error| Error::Logs(format!("{}", error)))?;
+ mullvad_paths::get_default_log_dir().map_err(|error| Error::Logs(format!("{error}")))?;
let paths = list_logs(log_dir)
.await
- .map_err(|error| Error::Logs(format!("{}", error)))?;
+ .map_err(|error| Error::Logs(format!("{error}")))?;
let mut log_files = Vec::new();
for path in paths {
let log_file = read_truncated(&path, Some(TRUNCATE_LOG_FILE_LINES))