Skip to content

Commit 58ca229

Browse files
committed
Update
1 parent 61916a2 commit 58ca229

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/parser/compilation_unit/compilation_unit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl CompilationUnit {
181181
}
182182

183183
pub(crate) fn include_directive_is_circular(&self, file_path: &str) -> bool {
184-
if canonicalize_path(&self.file_path.clone().unwrap_or("".into())) == canonicalize_path(file_path) {
184+
if normalize_path(&self.file_path.clone().unwrap_or("".into())) == normalize_path(file_path) {
185185
return true;
186186
}
187187
if let Some(included_from) = self.included_from() {
@@ -248,6 +248,6 @@ impl CompilationUnit {
248248
}
249249
}
250250

251-
fn canonicalize_path(path: &str) -> String {
251+
fn normalize_path(path: &str) -> String {
252252
realhydroper_path::normalize_path(std::path::Path::new(path)).to_string_lossy().into_owned()
253253
}

0 commit comments

Comments
 (0)