From 9a79643ced98567ab7b0c742f0d161cb5dd43578 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 10 Mar 2021 10:08:11 +0100 Subject: Clippy fix: Remove unneeded lifetimes Signed-off-by: Matthias Beyer --- src/endpoint/configured.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/endpoint') diff --git a/src/endpoint/configured.rs b/src/endpoint/configured.rs index d6139ab..219b6f9 100644 --- a/src/endpoint/configured.rs +++ b/src/endpoint/configured.rs @@ -283,7 +283,7 @@ impl Endpoint { .map(|o| o.is_some()) } - pub async fn get_container_by_id<'a>(&'a self, id: &str) -> Result>> { + pub async fn get_container_by_id(&self, id: &str) -> Result>> { if self.has_container_with_id(id).await? { Ok(Some(self.docker.containers().get(id))) } else { -- cgit v1.2.3