summaryrefslogtreecommitdiffstats
path: root/src/endpoint
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-03-10 10:08:11 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-03-10 10:13:06 +0100
commit9a79643ced98567ab7b0c742f0d161cb5dd43578 (patch)
tree07147e5204731c32b6c65d07f053083819c9e3ac /src/endpoint
parentf5058c3b15e6fdf3b60cd14a65badaf4f2a056bd (diff)
Clippy fix: Remove unneeded lifetimes
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/endpoint')
-rw-r--r--src/endpoint/configured.rs2
1 files changed, 1 insertions, 1 deletions
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<Option<Container<'a>>> {
+ pub async fn get_container_by_id(&self, id: &str) -> Result<Option<Container<'_>>> {
if self.has_container_with_id(id).await? {
Ok(Some(self.docker.containers().get(id)))
} else {