mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-05 19:55:37 +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
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
prefix.sort_unstable_by(|(left, _), (right, _)| left.cmp(right));
|
||||
prefix.sort_unstable_by_key(|(key, _)| *key);
|
||||
for (key, entry) in prefix {
|
||||
let mut value = serde_json::to_value(entry)?;
|
||||
value.sort_all_objects();
|
||||
|
||||
Reference in New Issue
Block a user