File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/parser/compilation_unit Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments