diff options
author | Eli W. Hunter <42009212+elihunter173@users.noreply.github.com> | 2021-02-20 19:36:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 19:36:31 -0500 |
commit | 9c72d3aacb675c5bcff238ce4996dbbe138e11c8 (patch) | |
tree | 692b95faa1a8226a6c29efe1f349ae999eddc735 /examples/networkdisconnect.rs | |
parent | 5af822c5691a772cad36bd9a69e94419b03d4511 (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/networkdisconnect.rs')
-rw-r--r-- | examples/networkdisconnect.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/networkdisconnect.rs b/examples/networkdisconnect.rs index 8d58b35..78f33c6 100644 --- a/examples/networkdisconnect.rs +++ b/examples/networkdisconnect.rs @@ -6,9 +6,8 @@ async fn network_disconnect( network_id: &str, ) { let docker = Docker::new(); - let networks = docker.networks(); - - if let Err(e) = networks + if let Err(e) = docker + .networks() .get(network_id) .disconnect(&ContainerConnectionOptions::builder(container_id).build()) .await |