From 6186cd83775b8ad19580f4f0679b8e4896b303d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Wed, 12 Jan 2022 20:59:57 +0100 Subject: [PATCH] Remove useless closures --- acmed/src/account/storage.rs | 4 ++-- acmed/src/acme_proto/structs/order.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acmed/src/account/storage.rs b/acmed/src/account/storage.rs index 2bf6c6e..5c95fda 100644 --- a/acmed/src/account/storage.rs +++ b/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::, 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, diff --git a/acmed/src/acme_proto/structs/order.rs b/acmed/src/acme_proto/structs/order.rs index cfeddef..a3e6a12 100644 --- a/acmed/src/acme_proto/structs/order.rs +++ b/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,