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/servicelogs.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/servicelogs.rs')
-rw-r--r-- | examples/servicelogs.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/servicelogs.rs b/examples/servicelogs.rs index 54d4743..e5f97c0 100644 --- a/examples/servicelogs.rs +++ b/examples/servicelogs.rs @@ -9,9 +9,8 @@ async fn main() { .nth(1) .expect("You need to specify a service name"); - let services = docker.services(); - - let mut logs_stream = services + let mut logs_stream = docker + .services() .get(&id) .logs(&LogsOptions::builder().stdout(true).stderr(true).build()); |