Skip to content

Commit 50edc82

Browse files
committed
Remove clippy fixes
1 parent d965c4c commit 50edc82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc/src/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub fn get_contents(input: &str) -> Result<(Option<String>, String), String> {
7777
match file.read_to_end(&mut buffer) {
7878
Ok(_) => (),
7979
Err(err) => {
80-
return Err(format!("{} '{}': {err}", t!("resolve.failedToReadFile"), include_path.display()));
80+
return Err(format!("{} '{include_path:?}': {err}", t!("resolve.failedToReadFile")));
8181
}
8282
}
8383
},
@@ -154,7 +154,7 @@ fn normalize_path(path: &Path) -> Result<PathBuf, String> {
154154
} else {
155155
// check that no components of the path are '..'
156156
if path.components().any(|c| c == std::path::Component::ParentDir) {
157-
return Err(format!("{}: {}", t!("resolve.invalidPath"), path.display()));
157+
return Err(format!("{}: {path:?}", t!("resolve.invalidPath")));
158158
}
159159

160160
// use DSC_CONFIG_ROOT env var as current directory

0 commit comments

Comments
 (0)