Skip to content

Commit e48c147

Browse files
committed
fix: clippy lint
1 parent fcd6c64 commit e48c147

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

rust/operator-binary/src/container.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -919,17 +919,17 @@ impl ContainerConfig {
919919
// instantiates the StackableTopologyProvider (which reads TOPOLOGY_LABELS).
920920
// Set as a default here (before the overrides below) so users can still
921921
// override it via `envOverrides`.
922-
if *role == HdfsNodeRole::Name {
923-
if let Some(rack_awareness) = hdfs.rackawareness_config() {
924-
env.insert(
925-
"TOPOLOGY_LABELS".to_string(),
926-
EnvVar {
927-
name: "TOPOLOGY_LABELS".to_string(),
928-
value: Some(rack_awareness),
929-
..EnvVar::default()
930-
},
931-
);
932-
}
922+
if *role == HdfsNodeRole::Name
923+
&& let Some(rack_awareness) = hdfs.rackawareness_config()
924+
{
925+
env.insert(
926+
"TOPOLOGY_LABELS".to_string(),
927+
EnvVar {
928+
name: "TOPOLOGY_LABELS".to_string(),
929+
value: Some(rack_awareness),
930+
..EnvVar::default()
931+
},
932+
);
933933
}
934934

935935
env.insert(

0 commit comments

Comments
 (0)