Browse Source

Remove useless closures

pull/57/head
Rodolphe Bréard 3 years ago
parent
commit
6186cd8377
  1. 4
      acmed/src/account/storage.rs
  2. 2
      acmed/src/acme_proto/structs/order.rs

4
acmed/src/account/storage.rs

@ -154,12 +154,12 @@ fn do_save(file_manager: &FileManager, account: &Account) -> Result<(), Error> {
let past_keys = account
.past_keys
.iter()
.map(|k| AccountKeyStorage::new(k))
.map(AccountKeyStorage::new)
.collect::<Result<Vec<AccountKeyStorage>, Error>>()?;
let external_account = account
.external_account
.as_ref()
.map(|a| ExternalAccountStorage::new(a));
.map(ExternalAccountStorage::new);
let account_storage = AccountStorage {
name: account.name.to_owned(),
endpoints,

2
acmed/src/acme_proto/structs/order.rs

@ -20,7 +20,7 @@ impl NewOrder {
NewOrder {
identifiers: identifiers
.iter()
.map(|n| Identifier::from_generic(n))
.map(Identifier::from_generic)
.collect(),
not_before: None,
not_after: None,

Loading…
Cancel
Save