fix(scanner): satisfy cache prefix sort lint

Co-Authored-By: heihutu <heihutu@gmail.com>

Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
This commit is contained in:
houseme
2026-09-05 22:34:20 +08:00
parent 278cbaefd5
commit 045770d09d
+1 -1
View File
@@ -923,7 +923,7 @@ impl DataUsageCache {
(key.as_str() <= through && !ancestor) || descendant (key.as_str() <= through && !ancestor) || descendant
}) })
.collect::<Vec<_>>(); .collect::<Vec<_>>();
prefix.sort_unstable_by(|(left, _), (right, _)| left.cmp(right)); prefix.sort_unstable_by_key(|(key, _)| *key);
for (key, entry) in prefix { for (key, entry) in prefix {
let mut value = serde_json::to_value(entry)?; let mut value = serde_json::to_value(entry)?;
value.sort_all_objects(); value.sort_all_objects();