cargo fmt
This commit is contained in:
parent
0af027b27e
commit
f5ac96f722
1 changed files with 5 additions and 3 deletions
|
@ -127,7 +127,10 @@ fn main() {
|
||||||
let mut manifest: accountmanager::Manifest;
|
let mut manifest: accountmanager::Manifest;
|
||||||
if !path.exists() {
|
if !path.exists() {
|
||||||
error!("Did not find manifest in {}", mafiles_dir);
|
error!("Did not find manifest in {}", mafiles_dir);
|
||||||
print!("Would you like to create a manifest in {} ? [Yn] ", mafiles_dir);
|
print!(
|
||||||
|
"Would you like to create a manifest in {} ? [Yn] ",
|
||||||
|
mafiles_dir
|
||||||
|
);
|
||||||
match prompt().to_lowercase().as_str() {
|
match prompt().to_lowercase().as_str() {
|
||||||
"n" => {
|
"n" => {
|
||||||
info!("Aborting!");
|
info!("Aborting!");
|
||||||
|
@ -138,8 +141,7 @@ fn main() {
|
||||||
std::fs::create_dir_all(mafiles_dir).expect("failed to create directory");
|
std::fs::create_dir_all(mafiles_dir).expect("failed to create directory");
|
||||||
|
|
||||||
manifest = accountmanager::Manifest::new(path.as_path());
|
manifest = accountmanager::Manifest::new(path.as_path());
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
match accountmanager::Manifest::load(path.as_path()) {
|
match accountmanager::Manifest::load(path.as_path()) {
|
||||||
Ok(m) => {
|
Ok(m) => {
|
||||||
manifest = m;
|
manifest = m;
|
||||||
|
|
Loading…
Reference in a new issue