Address ordering finding

This commit is contained in:
canvrno-oai
2026-05-29 11:52:01 -07:00
parent 87b35e30eb
commit 4533bcd463
+9 -1
View File
@@ -461,7 +461,15 @@ fn errors_for_cwd(cwd: &Path, response: &SkillsListResponse) -> Option<Vec<Skill
.data
.iter()
.find(|entry| entry.cwd.as_path() == cwd)
.map(|entry| entry.errors.clone())
.map(|entry| {
let mut errors = entry.errors.clone();
errors.sort_by(|left, right| {
left.path
.cmp(&right.path)
.then_with(|| left.message.cmp(&right.message))
});
errors
})
}
#[derive(Debug, Clone, PartialEq, Eq)]