mirror of
https://github.com/qwjyh/xdbm
synced 2024-11-21 22:30:12 +09:00
fmt
This commit is contained in:
parent
b9bb207f35
commit
6e1619aa18
4 changed files with 4 additions and 8 deletions
|
@ -57,9 +57,7 @@ pub(crate) enum Commands {
|
|||
Check {},
|
||||
|
||||
/// Generate completion script.
|
||||
Completion {
|
||||
shell: clap_complete::Shell,
|
||||
}
|
||||
Completion { shell: clap_complete::Shell },
|
||||
}
|
||||
|
||||
#[derive(Args, Debug)]
|
||||
|
|
|
@ -216,7 +216,7 @@ fn write_backups_list(
|
|||
None => {
|
||||
let style = Style::new().red();
|
||||
(style.apply_to("---".to_string()), style)
|
||||
},
|
||||
}
|
||||
};
|
||||
if !longprint {
|
||||
writeln!(
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
//! Manipulates storages.
|
||||
|
||||
use console::{style, Style, StyledObject};
|
||||
use crate::devices;
|
||||
use crate::storages::{
|
||||
directory::Directory, online_storage::OnlineStorage,
|
||||
|
@ -8,6 +7,7 @@ use crate::storages::{
|
|||
};
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use clap::ValueEnum;
|
||||
use console::{style, Style, StyledObject};
|
||||
use core::panic;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{collections::BTreeMap, fmt, fs, io, path};
|
||||
|
|
|
@ -180,9 +180,7 @@ mod test {
|
|||
local_infos,
|
||||
);
|
||||
let mut storages = Storages::new();
|
||||
storages
|
||||
.add(storages::Storage::Physical(physical))
|
||||
.unwrap();
|
||||
storages.add(storages::Storage::Physical(physical)).unwrap();
|
||||
storages.add(Storage::SubDirectory(directory)).unwrap();
|
||||
// assert_eq!(directory.name(), "test_name");
|
||||
assert_eq!(
|
||||
|
|
Loading…
Reference in a new issue