1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 00:34:09 +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()
.filter_map(|services| services.into_iter().next())
.next()
.map(|service| {
.inspect(|_| {
args.next();
service
}),
_ => None,
};

View file

@ -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<Item = &Service> {
self.options
.services
.iter()
.chain(DEFAULT_SERVICES.into_iter())
self.options.services.iter().chain(DEFAULT_SERVICES.iter())
}
pub fn db(&self) -> &Database {

View file

@ -299,7 +299,7 @@ async fn main() -> Result<ExitCode> {
};
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 {