replace HashMap with BTreeMap in Storages and Backups

to produce cleaner git log
This commit is contained in:
qwjyh 2024-05-21 14:34:30 +09:00
parent 6f8a71fe8d
commit feb51a5653
2 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@
use core::panic;
use std::{
collections::HashMap,
collections::BTreeMap,
fs, io,
path::{Path, PathBuf},
};
@ -202,14 +202,14 @@ impl Backup {
#[derive(Debug, Serialize, Deserialize)]
pub struct Backups {
pub list: HashMap<String, Backup>,
pub list: BTreeMap<String, Backup>,
}
impl Backups {
/// Empty [`Backups`].
pub fn new() -> Backups {
Backups {
list: HashMap::new(),
list: BTreeMap::new(),
}
}