diff options
Diffstat (limited to 'examples/volumecreate.rs')
-rw-r--r-- | examples/volumecreate.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/volumecreate.rs b/examples/volumecreate.rs index a243be6..a95bb12 100644 --- a/examples/volumecreate.rs +++ b/examples/volumecreate.rs @@ -1,10 +1,9 @@ -use shiplift::{builder::VolumeCreateOptions, Docker}; +use shiplift::{Docker, VolumeCreateOptions}; 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()) |