Skip to content

Commit

Permalink
order of usages shouldn't matter
Browse files Browse the repository at this point in the history
  • Loading branch information
Radvendii committed Oct 17, 2023
1 parent 67f21e3 commit 9ed4f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsp/nls/src/usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub(crate) mod tests {
let x2 = locced(x, file, 17..18);
let table = UsageLookup::new(&rt, &Environment::new());

assert_eq!(table.usages(&x0).cloned().collect::<Vec<_>>(), vec![x1, x2]);
assert_eq!(table.usages(&x0).cloned().collect::<Vec<_>>(), vec![x2, x1]);
assert_eq!(table.def(&x1), table.def(&x2));
assert_eq!(table.def(&x0), table.def(&x1));

Expand Down

0 comments on commit 9ed4f0e

Please sign in to comment.