Skip to content

Commit 2fb7ca8

Browse files
committed
fixes clippy::uninlined_format_args
1 parent 0c5b3c9 commit 2fb7ca8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/cli.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,13 @@ fn is_dir(s: &str) -> Result<PathBuf, String> {
210210
let path = PathBuf::from(s);
211211

212212
if !path.exists() {
213-
Err(format!("does not exist: {path:?}"))
213+
Err(format!("does not exist: {}", path.display()))
214214
} else if !path.is_absolute() {
215-
Err(format!("is not absolute: {path:?}"))
215+
Err(format!("is not absolute: {}", path.display()))
216216
} else if path.is_dir() {
217217
Ok(path)
218218
} else {
219-
Err(format!("is not a directory: {path:?}"))
219+
Err(format!("is not a directory: {}", path.display()))
220220
}
221221
}
222222

0 commit comments

Comments
 (0)