chore(clippy): use sort_by_key with Reverse for face_count ordering

This commit is contained in:
Edouard Vanbelle
2026-06-19 15:45:08 +02:00
parent 55487187eb
commit 30eabdb23e
+1 -1
View File
@@ -199,7 +199,7 @@ impl PeopleService {
}) })
}) })
.collect(); .collect();
out.sort_by(|a, b| b.face_count.cmp(&a.face_count)); out.sort_by_key(|p| std::cmp::Reverse(p.face_count));
Ok(out) Ok(out)
} }