From 9c72d3aacb675c5bcff238ce4996dbbe138e11c8 Mon Sep 17 00:00:00 2001 From: "Eli W. Hunter" <42009212+elihunter173@users.noreply.github.com> Date: Sat, 20 Feb 2021 19:36:31 -0500 Subject: 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 --- examples/volumecreate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/volumecreate.rs') diff --git a/examples/volumecreate.rs b/examples/volumecreate.rs index a243be6..95bc575 100644 --- a/examples/volumecreate.rs +++ b/examples/volumecreate.rs @@ -4,7 +4,6 @@ use std::{collections::HashMap, env}; #[tokio::main] async fn main() { let docker = Docker::new(); - let volumes = docker.volumes(); let volume_name = env::args() .nth(1) @@ -13,7 +12,8 @@ async fn main() { let mut labels = HashMap::new(); labels.insert("com.github.softprops", "shiplift"); - match volumes + match docker + .volumes() .create( &VolumeCreateOptions::builder() .name(volume_name.as_ref()) -- cgit v1.2.3