Skip to content

Commit b76eff6

Browse files
committed
fix: clippy error
```output error: unnecessary `Debug` formatting in `format!` args --> src/console/ci/e2e/runner.rs:140:98 | 140 | let config = std::fs::read_to_string(path).with_context(|| format!("CSan't read config file {path:?}"))?; | ^^^^ | = help: use `Display` formatting and change this to `path.display()` = note: switching to `Display` formatting will change how the value is shown; escaped characters will no longer be escaped and surrounding quotes will be removed = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_debug_formatting = note: `-D clippy::unnecessary-debug-formatting` implied by `-D clippy::pedantic` = help: to override `-D clippy::pedantic` add `#[allow(clippy::unnecessary_debug_formatting)]` error: could not compile `torrust-tracker` (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: could not compile `torrust-tracker` (lib test) due to 1 previous error ```
1 parent a8224e8 commit b76eff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/console/ci/e2e/runner.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fn load_tracker_configuration(args: &Args) -> anyhow::Result<String> {
137137
}
138138

139139
fn load_config_from_file(path: &PathBuf) -> anyhow::Result<String> {
140-
let config = std::fs::read_to_string(path).with_context(|| format!("CSan't read config file {path:?}"))?;
140+
let config = std::fs::read_to_string(path).with_context(|| format!("CSan't read config file {}", path.display()))?;
141141

142142
Ok(config)
143143
}

0 commit comments

Comments
 (0)