mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 17:58:17 +00:00
dev: hash imports of expr info (#756)
This commit is contained in:
parent
8f3566366e
commit
67367b03bf
1 changed files with 3 additions and 0 deletions
|
@ -158,6 +158,9 @@ impl std::hash::Hash for ExprInfo {
|
|||
self.source.hash(state);
|
||||
self.exports.hash(state);
|
||||
self.root.hash(state);
|
||||
let mut imports = self.imports.iter().collect::<Vec<_>>();
|
||||
imports.sort_by_key(|(k, _)| *k);
|
||||
imports.hash(state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue