cargo fmt

This commit is contained in:
Carson McManus 2021-08-12 18:54:38 -04:00
parent 0af027b27e
commit f5ac96f722

View file

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