1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 16:54:08 +02:00

clippy fixes

This commit is contained in:
Robin Appelman 2026-09-27 18:04:09 +02:00
commit eefffc3231
3 changed files with 4 additions and 8 deletions

View file

@ -325,9 +325,8 @@ impl HazeArgs {
.into_iter() .into_iter()
.filter_map(|services| services.into_iter().next()) .filter_map(|services| services.into_iter().next())
.next() .next()
.map(|service| { .inspect(|_| {
args.next(); args.next();
service
}), }),
_ => None, _ => None,
}; };

View file

@ -542,7 +542,7 @@ impl Cloud {
.services .services
.iter() .iter()
.filter(|service| !service.hidden()) .filter(|service| !service.hidden())
.chain(DEFAULT_SERVICES.into_iter()) .chain(DEFAULT_SERVICES.iter())
.map(|service| service.spawn(docker, &id, &network, config, &options)), .map(|service| service.spawn(docker, &id, &network, config, &options)),
) )
.await?; .await?;
@ -974,10 +974,7 @@ impl Cloud {
} }
pub fn services(&self) -> impl Iterator<Item = &Service> { pub fn services(&self) -> impl Iterator<Item = &Service> {
self.options self.options.services.iter().chain(DEFAULT_SERVICES.iter())
.services
.iter()
.chain(DEFAULT_SERVICES.into_iter())
} }
pub fn db(&self) -> &Database { pub fn db(&self) -> &Database {

View file

@ -299,7 +299,7 @@ async fn main() -> Result<ExitCode> {
}; };
let addr = config let addr = config
.proxy .proxy
.addr(&format!("{}-{}", &cloud.id, service.name()), ip); .addr(&format!("{}-{}", cloud.id, service.name()), ip);
opener::open(addr).into_diagnostic()?; opener::open(addr).into_diagnostic()?;
} }
None => match cloud.ip { None => match cloud.ip {