1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +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,
) -> Result<Vec<String>> {
let network_info = docker
.inspect_network(&network, None)
.inspect_network(network, None)
.await
.into_diagnostic()?;
let gateway = network_info
@ -65,7 +65,7 @@ impl ServiceTrait for Office {
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() {
vec![]
} else {
@ -77,7 +77,7 @@ impl ServiceTrait for Office {
let config = ContainerCreateBody {
image: Some(image.into()),
env: Some(env.into_iter().map(String::from).collect()),
env: Some(env),
host_config: Some(HostConfig {
network_mode: Some(network.to_string()),
extra_hosts: Some(hosts),