Browse Source

Fixup

master
Adrian Heine 7 years ago
parent
commit
c9cf5af6cd
  1. 2
      src/symbols/acme/user.rs

2
src/symbols/acme/user.rs

@ -52,7 +52,7 @@ impl<'a> fmt::Display for AcmeUser<'a> {
pub fn new<'a, S: Into<Cow<'a, str>>, C: CommandRunner, P: 'a + Deref<Target=str>>(command_runner: &'a C, cert: P, user_name: S) -> Box<Symbol + 'a> { // impl trait pub fn new<'a, S: Into<Cow<'a, str>>, C: CommandRunner, P: 'a + Deref<Target=str>>(command_runner: &'a C, cert: P, user_name: S) -> Box<Symbol + 'a> { // impl trait
let user_name_cow = user_name.into(); let user_name_cow = user_name.into();
let account_key_file: PathBuf = ["home", user_name_cow.borrow(), "account.key"].iter().collect();
let account_key_file: PathBuf = ["/home", user_name_cow.borrow(), "account.key"].iter().collect();
Box::new(List::new(vec![ Box::new(List::new(vec![
Box::new(AcmeAccountKey::new(account_key_file.clone().into(), command_runner)), Box::new(AcmeAccountKey::new(account_key_file.clone().into(), command_runner)),
Box::new(Owner::new(account_key_file.to_string_lossy().into_owned(), user_name_cow.clone(), command_runner)), Box::new(Owner::new(account_key_file.to_string_lossy().into_owned(), user_name_cow.clone(), command_runner)),

Loading…
Cancel
Save