From baccbda4771b83333b66beb16f0af007bbab1107 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Wed, 26 Jun 2024 14:43:42 +0200 Subject: [PATCH] acme: elide explicit lifetimes Fixes the clippy warning: warning: the following explicit lifetimes could be elided: 'a --> proxmox-acme/src/async_client.rs:65:30 | 65 | pub async fn new_account<'a>( | ^^ 66 | &'a mut self, | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default Signed-off-by: Maximiliano Sandoval --- proxmox-acme/src/async_client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxmox-acme/src/async_client.rs b/proxmox-acme/src/async_client.rs index 51365c7e..ce5a6c79 100644 --- a/proxmox-acme/src/async_client.rs +++ b/proxmox-acme/src/async_client.rs @@ -62,13 +62,13 @@ impl AcmeClient { /// /// If an RSA key size is provided, an RSA key will be generated. Otherwise an EC key using the /// P-256 curve will be generated. - pub async fn new_account<'a>( - &'a mut self, + pub async fn new_account( + &mut self, tos_agreed: bool, contact: Vec, rsa_bits: Option, eab_creds: Option<(String, String)>, - ) -> Result<&'a Account, anyhow::Error> { + ) -> Result<&Account, anyhow::Error> { let mut account = Account::creator() .set_contacts(contact) .agree_to_tos(tos_agreed);