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:
Maximiliano Sandoval 2024-12-02 10:58:03 +01:00 committed by Fabian Grünbichler
parent 7eee253d8c
commit ff9e36b431

View File

@ -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(