Skip to content

Commit b177d30

Browse files
committed
chore: Use borrows
1 parent f251693 commit b177d30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/operator-binary/src/history/history_controller.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ fn build_stateful_set(
543543
pb.add_container(container);
544544

545545
if merged_config.logging.enable_vector_agent {
546-
match shs.spec.vector_aggregator_config_map_name.to_owned() {
546+
match &shs.spec.vector_aggregator_config_map_name {
547547
Some(vector_aggregator_config_map_name) => {
548548
pb.add_container(
549549
vector_container(
@@ -560,7 +560,7 @@ fn build_stateful_set(
560560
.with_memory_request("128Mi")
561561
.with_memory_limit("128Mi")
562562
.build(),
563-
&vector_aggregator_config_map_name,
563+
vector_aggregator_config_map_name,
564564
)
565565
.context(ConfigureLoggingSnafu)?,
566566
);

0 commit comments

Comments
 (0)