From 6c6184ae4901aefd32b2ae7c530ed4585f6ede21 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 18 Jan 2025 08:18:09 +0000 Subject: [PATCH] fix: elide lifetimes Closes kemitix/trello-to-deck#21 --- src/trello/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trello/client.rs b/src/trello/client.rs index bbe4ecc..8649c88 100644 --- a/src/trello/client.rs +++ b/src/trello/client.rs @@ -23,7 +23,7 @@ pub(crate) struct TrelloClient<'ctx> { ctx: &'ctx FullCtx, } -impl<'ctx> TrelloClient<'ctx> { +impl TrelloClient<'_> { fn url(&self, path: impl Into) -> String { let path = path.into(); assert!(path.starts_with("/")); @@ -117,7 +117,7 @@ impl<'ctx> TrelloClient<'ctx> { } } -impl<'ctx> TrelloClient<'ctx> { +impl TrelloClient<'_> { // https://developer.atlassian.com/cloud/trello/rest/api-group-members/#api-members-id-boards-get pub(crate) async fn boards(&self) -> APIResult> { self.request("/members/me/boards", |net, url| {