mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
clippy fixes
This commit is contained in:
parent
24b8fd26ca
commit
96b7dd671c
1 changed files with 3 additions and 3 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue