mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +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()
|
||||
.filter_map(|services| services.into_iter().next())
|
||||
.next()
|
||||
.map(|service| {
|
||||
.inspect(|_| {
|
||||
args.next();
|
||||
service
|
||||
}),
|
||||
_ => None,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue