summaryrefslogtreecommitdiffstats
path: root/examples/networkconnect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/networkconnect.rs')
-rw-r--r--examples/networkconnect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/networkconnect.rs b/examples/networkconnect.rs
index 86a2ac1..3960b8f 100644
--- a/examples/networkconnect.rs
+++ b/examples/networkconnect.rs
@@ -12,7 +12,7 @@ fn main() {
(Some(container_id), Some(network_id)) => {
let fut = networks
.get(&network_id)
- .connect(&ContainerConnectionOptions::new(&container_id))
+ .connect(&ContainerConnectionOptions::builder(&container_id).build())
.map(|v| println!("{:?}", v))
.map_err(|e| eprintln!("Error: {}", e));
tokio::run(fut);