summaryrefslogtreecommitdiffstats
path: root/examples/attach.rs
diff options
context:
space:
mode:
authorEli W. Hunter <42009212+elihunter173@users.noreply.github.com>2021-02-20 19:36:31 -0500
committerGitHub <noreply@github.com>2021-02-20 19:36:31 -0500
commit9c72d3aacb675c5bcff238ce4996dbbe138e11c8 (patch)
tree692b95faa1a8226a6c29efe1f349ae999eddc735 /examples/attach.rs
parent5af822c5691a772cad36bd9a69e94419b03d4511 (diff)
Fix lifetimes (#272)
* Some changes * Clarify lifetimes in transport.rs * Fix remaining easy lifetimes in lib.rs * Refactor Images::build for new lifetimes to work * Fix Exec::start() * Fix Container::exec() * Make header_bytes not a Vec * Make Docker::{images,...}() lifetimes explicit * Fix Containers::get() * Remove unnecessary locals from examples * Update changelog * Appease clippy
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();