mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-10-04 18:27:16 +00:00
client: catalog: remove unnecessary sort_unstable_by
Fixes the unnecessary_sort_by clippy lint: ``` warning: consider using `sort` --> proxmox-backup-client/src/catalog.rs:102:13 | 102 | metadata_archives.sort_unstable_by(|a, b| a.cmp(b)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `metadata_archives.sort_unstable()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by = note: `#[warn(clippy::unnecessary_sort_by)]` on by default ``` Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
7eee253d8c
commit
ff9e36b431
@ -98,7 +98,7 @@ async fn dump_catalog(param: Value) -> Result<Value, Error> {
|
||||
metadata_archives.push(archive.filename.clone());
|
||||
}
|
||||
}
|
||||
metadata_archives.sort_unstable_by(|a, b| a.cmp(b));
|
||||
metadata_archives.sort_unstable();
|
||||
|
||||
for archive in &metadata_archives {
|
||||
let (reader, archive_size) = get_remote_pxar_reader(
|
||||
|
Loading…
Reference in New Issue
Block a user