Skip to content

Commit 8e28ff3

Browse files
committed
fix: Update format strings to use inline variable syntax
- Fix clippy::uninlined_format_args warnings in arrow-pg/src/list_encoder.rs - Update 5 format! macros to use modern inline syntax (format!("{var}") instead of format!("{}", var)) - Ensures clippy passes with -D warnings for CI/CD builds
1 parent c32bccf commit 8e28ff3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arrow-pg/src/list_encoder.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ pub(crate) fn encode_list(
479479
None
480480
} else {
481481
// Convert nested list to string representation
482-
Some(format!("[nested_list_{}]", i))
482+
Some(format!("[nested_list_{i}]"))
483483
}
484484
})
485485
.collect();
@@ -496,7 +496,7 @@ pub(crate) fn encode_list(
496496
if list_array.is_null(i) {
497497
None
498498
} else {
499-
Some(format!("[large_list_{}]", i))
499+
Some(format!("[large_list_{i}]"))
500500
}
501501
})
502502
.collect();
@@ -513,7 +513,7 @@ pub(crate) fn encode_list(
513513
if map_array.is_null(i) {
514514
None
515515
} else {
516-
Some(format!("{{map_{}}}", i))
516+
Some(format!("{{map_{i}}}"))
517517
}
518518
})
519519
.collect();
@@ -527,7 +527,7 @@ pub(crate) fn encode_list(
527527
if arr.is_null(i) {
528528
None
529529
} else {
530-
Some(format!("union_{}", i))
530+
Some(format!("union_{i}"))
531531
}
532532
})
533533
.collect();
@@ -540,7 +540,7 @@ pub(crate) fn encode_list(
540540
if arr.is_null(i) {
541541
None
542542
} else {
543-
Some(format!("dict_{}", i))
543+
Some(format!("dict_{i}"))
544544
}
545545
})
546546
.collect();

0 commit comments

Comments
 (0)