mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 16:54:08 +02:00
clippy fixes
This commit is contained in:
parent
39b5370818
commit
eefffc3231
3 changed files with 4 additions and 8 deletions
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue