Skip to content

Commit f113122

Browse files
committed
chore: Use borrows
1 parent 9461d3d commit f113122

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

rust/operator-binary/src/spark_k8s_controller.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,7 @@ fn pod_template(
637637
}
638638

639639
if config.logging.enable_vector_agent {
640-
match spark_application
641-
.spec
642-
.vector_aggregator_config_map_name
643-
.to_owned()
644-
{
640+
match &spark_application.spec.vector_aggregator_config_map_name {
645641
Some(vector_aggregator_config_map_name) => {
646642
pb.add_container(
647643
vector_container(
@@ -655,7 +651,7 @@ fn pod_template(
655651
.with_memory_request("128Mi")
656652
.with_memory_limit("128Mi")
657653
.build(),
658-
&vector_aggregator_config_map_name,
654+
vector_aggregator_config_map_name,
659655
)
660656
.context(ConfigureLoggingSnafu)?,
661657
);

0 commit comments

Comments
 (0)