diff --git a/src/args.rs b/src/args.rs index 7bec3c1..1f13cc2 100644 --- a/src/args.rs +++ b/src/args.rs @@ -325,9 +325,8 @@ impl HazeArgs { .into_iter() .filter_map(|services| services.into_iter().next()) .next() - .map(|service| { + .inspect(|_| { args.next(); - service }), _ => None, }; diff --git a/src/cloud.rs b/src/cloud.rs index 0928e33..515537f 100644 --- a/src/cloud.rs +++ b/src/cloud.rs @@ -542,7 +542,7 @@ impl Cloud { .services .iter() .filter(|service| !service.hidden()) - .chain(DEFAULT_SERVICES.into_iter()) + .chain(DEFAULT_SERVICES.iter()) .map(|service| service.spawn(docker, &id, &network, config, &options)), ) .await?; @@ -974,10 +974,7 @@ impl Cloud { } pub fn services(&self) -> impl Iterator { - self.options - .services - .iter() - .chain(DEFAULT_SERVICES.into_iter()) + self.options.services.iter().chain(DEFAULT_SERVICES.iter()) } pub fn db(&self) -> &Database { diff --git a/src/main.rs b/src/main.rs index 2677db1..2271d5c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -299,7 +299,7 @@ async fn main() -> Result { }; let addr = config .proxy - .addr(&format!("{}-{}", &cloud.id, service.name()), ip); + .addr(&format!("{}-{}", cloud.id, service.name()), ip); opener::open(addr).into_diagnostic()?; } None => match cloud.ip {