Skip to content

Commit 59ca78b

Browse files
committed
clippy
1 parent da290fa commit 59ca78b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/stackable-operator/src/utils/cluster_domain.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::{env, path::Path, str::FromStr, sync::OnceLock};
22

33
use snafu::{OptionExt, ResultExt, Snafu};
44

5-
use crate::{commons::networking::DomainName, utils::cluster_domain};
5+
use crate::commons::networking::DomainName;
66

77
const KUBERNETES_CLUSTER_DOMAIN_ENV: &str = "KUBERNETES_CLUSTER_DOMAIN";
88
const KUBERNETES_SERVICE_HOST_ENV: &str = "KUBERNETES_SERVICE_HOST";
@@ -94,8 +94,7 @@ pub(crate) fn retrieve_cluster_domain() -> Result<DomainName, Error> {
9494
Err(_) => {
9595
let cluster_domain = KUBERNETES_CLUSTER_DOMAIN_DEFAULT;
9696
tracing::info!(cluster_domain, "Using default Kubernetes cluster domain");
97-
DomainName::from_str(KUBERNETES_CLUSTER_DOMAIN_DEFAULT)
98-
.context(ParseDomainNameSnafu { cluster_domain })
97+
DomainName::from_str(cluster_domain).context(ParseDomainNameSnafu { cluster_domain })
9998
}
10099
}
101100
}

0 commit comments

Comments
 (0)