From 2014a13a90c20a89cd8be902d014321d0c1c84a3 Mon Sep 17 00:00:00 2001 From: jingyu Date: Sun, 1 Dec 2024 13:56:23 +0800 Subject: [PATCH] fix: #31 show correct decoration after cargo.lock change --- src/controller/appraiser.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controller/appraiser.rs b/src/controller/appraiser.rs index b9e9cc9..6289e65 100644 --- a/src/controller/appraiser.rs +++ b/src/controller/appraiser.rs @@ -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()