summaryrefslogtreecommitdiffstats
path: root/examples/attach.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/attach.rs')
-rw-r--r--examples/attach.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/attach.rs b/examples/attach.rs
index 769bc64..e4ed637 100644
--- a/examples/attach.rs
+++ b/examples/attach.rs
@@ -9,8 +9,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.nth(1)
.expect("You need to specify a container id");
- let containers = docker.containers();
- let tty_multiplexer = containers.get(&id).attach().await?;
+ let tty_multiplexer = docker.containers().get(&id).attach().await?;
let (mut reader, _writer) = tty_multiplexer.split();