mirror of
https://github.com/qwjyh/xdbm
synced 2025-07-17 03:59:19 +09:00
replace HashMap with BTreeMap in Storages and Backups
to produce cleaner git log
This commit is contained in:
parent
6f8a71fe8d
commit
feb51a5653
2 changed files with 6 additions and 6 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue