summaryrefslogtreecommitdiffstats
path: root/src/endpoint
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-06-20 19:32:05 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-08-18 10:07:19 +0200
commit3a3fe10bc1837170792f2ab35f9b6374273eddae (patch)
tree3f11df376fc00f72d40b28d55a0e6d1075427fd1 /src/endpoint
parent29421212f21dec376b31ca3ac51cc45798fe5580 (diff)
Refactor: Simplify PreparedContainer::start() with more method chaining
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/endpoint')
-rw-r--r--src/endpoint/configured.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/endpoint/configured.rs b/src/endpoint/configured.rs
index e38258c..1a894b2 100644
--- a/src/endpoint/configured.rs
+++ b/src/endpoint/configured.rs
@@ -721,12 +721,12 @@ impl<'a> PreparedContainer<'a> {
}
pub async fn start(self) -> Result<StartedContainer<'a>> {
- let container = self.endpoint.docker.containers().get(&self.create_info.id);
- let _ = container
+ self.endpoint
+ .docker
+ .containers()
+ .get(&self.create_info.id)
.start()
- .inspect(|r| {
- trace!("Starting container {} -> {:?}", self.create_info.id, r);
- })
+ .inspect(|r| trace!("Starting container {} -> {:?}", self.create_info.id, r))
.map(|r| {
r.with_context(|| {
anyhow!(