Skip to content

Commit

Permalink
Fix clippy lint about unnecessary lifetimes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Jan 16, 2025
1 parent 5cce42a commit ce247fe
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion acme/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl<'a> Client<'a> {
}
}

impl<'a, K> Account<'a, K> where K: AccountKey {
impl<K> Account<'_, K> where K: AccountKey {
pub async fn place_order(&mut self, domain_name: &str) -> anyhow::Result<Order> {
#[derive(serde::Serialize)]
struct NewOrderRequest<'a> {
Expand Down
2 changes: 1 addition & 1 deletion azure/src/key_vault/certificate.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
impl<'a> super::Client<'a> {
impl super::Client<'_> {
pub async fn csr_create(&self, certificate_name: &str, common_name: &str, key_type: CreateCsrKeyType) -> anyhow::Result<String> {
#[derive(serde::Serialize)]
struct Request<'a> {
Expand Down
2 changes: 1 addition & 1 deletion azure/src/key_vault/key.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anyhow::Context;

impl<'a> super::Client<'a> {
impl super::Client<'_> {
pub async fn key_create<'b>(
&'b self,
key_name: &str,
Expand Down
2 changes: 1 addition & 1 deletion azure/src/management/dns.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
impl<'a> super::Client<'a> {
impl super::Client<'_> {
pub async fn dns_zone_name_servers_get(&self, dns_zone_name: &str) -> anyhow::Result<Vec<String>> {
struct Response(Vec<String>);

Expand Down
4 changes: 2 additions & 2 deletions function-renew-cert/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ where
{
struct Visitor;

impl<'de> serde::de::Visitor<'de> for Visitor {
impl serde::de::Visitor<'_> for Visitor {
type Value = (azure::key_vault::EcKty, acme::EcCurve);

fn expecting(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Expand Down Expand Up @@ -314,7 +314,7 @@ where
{
struct Visitor;

impl<'de> serde::de::Visitor<'de> for Visitor {
impl serde::de::Visitor<'_> for Visitor {
type Value = azure::key_vault::CreateCsrKeyType;

fn expecting(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion function-worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub trait Handler {
) -> std::pin::Pin<Box<dyn std::future::Future<Output = anyhow::Result<bool>> + 'this>>;
}

impl<'h, H> Handler for &'h H where H: Handler {
impl<H> Handler for &H where H: Handler {
type Settings<'a> = <H as Handler>::Settings<'a>;

fn handle<'this>(
Expand Down

0 comments on commit ce247fe

Please sign in to comment.