summaryrefslogtreecommitdiffstats
path: root/examples/attach.rs
diff options
context:
space:
mode:
authorWojciech Kępka <46892771+wojciechkepka@users.noreply.github.com>2021-02-06 08:14:39 +0100
committerGitHub <noreply@github.com>2021-02-06 02:14:39 -0500
commit4e3f69c34a177697af940849fced1a284fc09449 (patch)
tree66fdf4f6bc722b2f3181dbb9664f29e2d8fc3a60 /examples/attach.rs
parentef3dfad8f691f64e41fb1d369399471cde6ad8c0 (diff)
Simplify api, get rid of unnecessary lifetimes (#252)
* Get rid of explicit lifetimes * more lifetimes ellided * Fix examples * Minor fix
Diffstat (limited to 'examples/attach.rs')
-rw-r--r--examples/attach.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/attach.rs b/examples/attach.rs
index e4ed637..769bc64 100644
--- a/examples/attach.rs
+++ b/examples/attach.rs
@@ -9,7 +9,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.nth(1)
.expect("You need to specify a container id");
- let tty_multiplexer = docker.containers().get(&id).attach().await?;
+ let containers = docker.containers();
+ let tty_multiplexer = containers.get(&id).attach().await?;
let (mut reader, _writer) = tty_multiplexer.split();