Skip to content

Commit

Permalink
fix: #31 show correct decoration after cargo.lock change
Browse files Browse the repository at this point in the history
  • Loading branch information
washanhanzi committed Dec 1, 2024
1 parent de28a5e commit 2014a13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controller/appraiser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,10 @@ impl Appraiser {
let req_version = unresolved.version_req();

//order summaries by version
//clear matched result from previous resolve
dep.matched_summary = None;
dep.latest_matched_summary = None;
dep.latest_summary = None;
summaries.sort_by(|a, b| b.version().cmp(a.version()));
for summary in &summaries {
if dep.matched_summary.is_some()
Expand Down

0 comments on commit 2014a13

Please sign in to comment.