summaryrefslogtreecommitdiffstats
path: root/examples/volumecreate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/volumecreate.rs')
-rw-r--r--examples/volumecreate.rs4
1 files changed, 2 insertions, 2 deletions
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())