1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00

clippy fixes

This commit is contained in:
Robin Appelman 2026-04-13 23:42:02 +02:00
commit 96b7dd671c

View file

@ -33,7 +33,7 @@ impl ServiceTrait for Office {
_options: &CloudOptions, _options: &CloudOptions,
) -> Result<Vec<String>> { ) -> Result<Vec<String>> {
let network_info = docker let network_info = docker
.inspect_network(&network, None) .inspect_network(network, None)
.await .await
.into_diagnostic()?; .into_diagnostic()?;
let gateway = network_info let gateway = network_info
@ -65,7 +65,7 @@ impl ServiceTrait for Office {
env.push(format!("server_name={clean_id}.{}", config.proxy.address)); env.push(format!("server_name={clean_id}.{}", config.proxy.address));
} }
let clean_cloud_id = cloud_id.strip_prefix("haze-").unwrap_or(&cloud_id); let clean_cloud_id = cloud_id.strip_prefix("haze-").unwrap_or(cloud_id);
let hosts = if proxy_base.is_empty() { let hosts = if proxy_base.is_empty() {
vec![] vec![]
} else { } else {
@ -77,7 +77,7 @@ impl ServiceTrait for Office {
let config = ContainerCreateBody { let config = ContainerCreateBody {
image: Some(image.into()), image: Some(image.into()),
env: Some(env.into_iter().map(String::from).collect()), env: Some(env),
host_config: Some(HostConfig { host_config: Some(HostConfig {
network_mode: Some(network.to_string()), network_mode: Some(network.to_string()),
extra_hosts: Some(hosts), extra_hosts: Some(hosts),