Check canonicalized_module_path before used (#1767)
This commit is contained in:
parent
440e57dd6f
commit
4f93d7e894
@ -390,7 +390,8 @@ where
|
||||
|
||||
path == Path::new(&module_name)
|
||||
|| path == module_path
|
||||
|| fs::canonicalize(path).ok() == canonicalized_module_path
|
||||
|| (canonicalized_module_path.is_some()
|
||||
&& fs::canonicalize(path).ok() == canonicalized_module_path)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user