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 <m.sandoval@proxmox.com>
This commit is contained in:
parent
6b1e4b83bb
commit
baccbda477
@ -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<String>,
|
||||
rsa_bits: Option<u32>,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user