Skip to content

Commit 948f64d

Browse files
committed
remove replace
1 parent 6c67205 commit 948f64d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rewatch/src/build/compile/dependency_cycle.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,7 @@ pub fn format(cycle: &[String], build_state: &BuildCommandState) -> String {
166166
}) => {
167167
if let Some(package) = build_state.get_package(package_name) {
168168
let abs_path = Path::new(&package.path).join(&source_file.implementation.path);
169-
let rel_path = abs_path
170-
.strip_prefix(root)
171-
.unwrap_or(&abs_path)
172-
.to_string_lossy()
173-
.replace('\\', "/");
169+
let rel_path = abs_path.strip_prefix(root).unwrap_or(&abs_path).to_string_lossy();
174170
format!("{display_name} ({rel_path})")
175171
} else {
176172
display_name

0 commit comments

Comments
 (0)