This commit is contained in:
qwjyh 2024-06-28 00:33:45 +09:00
parent b9bb207f35
commit 6e1619aa18
4 changed files with 4 additions and 8 deletions

View file

@ -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)]

View file

@ -216,7 +216,7 @@ fn write_backups_list(
None => {
let style = Style::new().red();
(style.apply_to("---".to_string()), style)
},
}
};
if !longprint {
writeln!(

View file

@ -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};

View file

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