Skip to content

Commit 8630deb

Browse files
author
Dominik Táskai
committed
Linting.
Signed-off-by: Dominik Táskai <dominik.taskai@leannet.eu>
1 parent da30c4f commit 8630deb

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

linkerd/app/src/env.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,7 @@ pub fn parse_config<S: Strings>(strings: &S) -> Result<super::Config, EnvError>
425425
let inbound_ips = {
426426
let ips = parse(strings, ENV_INBOUND_IPS, parse_ip_set)?.unwrap_or_default();
427427
if ips.is_empty() {
428-
info!(
429-
"`{ENV_INBOUND_IPS}` allowlist not configured, allowing all target addresses",
430-
);
428+
info!("`{ENV_INBOUND_IPS}` allowlist not configured, allowing all target addresses",);
431429
} else {
432430
debug!(allowed = ?ips, "Only allowing connections targeting `{ENV_INBOUND_IPS}`");
433431
}
@@ -692,9 +690,7 @@ pub fn parse_config<S: Strings>(strings: &S) -> Result<super::Config, EnvError>
692690
// The workload, which is opaque from the proxy's point-of-view, is sent to the
693691
// policy controller to support policy discovery.
694692
let workload = strings.get(ENV_POLICY_WORKLOAD)?.ok_or_else(|| {
695-
error!(
696-
"{ENV_POLICY_WORKLOAD} must be set with {ENV_POLICY_SVC_BASE}_ADDR",
697-
);
693+
error!("{ENV_POLICY_WORKLOAD} must be set with {ENV_POLICY_SVC_BASE}_ADDR",);
698694
EnvError::InvalidEnvVar
699695
})?;
700696

@@ -1243,9 +1239,7 @@ pub fn parse_identity_config<S: Strings>(
12431239
.map(|d| !d.is_empty())
12441240
.unwrap_or(false)
12451241
{
1246-
error!(
1247-
"{ENV_IDENTITY_DISABLED} is no longer supported. Identity is must be enabled."
1248-
);
1242+
error!("{ENV_IDENTITY_DISABLED} is no longer supported. Identity is must be enabled.");
12491243
return Err(EnvError::InvalidEnvVar);
12501244
}
12511245

0 commit comments

Comments
 (0)