mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-07 20:46:11 +00:00
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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user