Skip to content

Commit 95940c0

Browse files
committed
Run pre-commit
1 parent 224deb9 commit 95940c0

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

datafusion-cli/src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ impl TableFunctionImpl for ParquetMetadataFunc {
421421
compression_arr.push(format!("{:?}", column.compression()));
422422
// need to collect into Vec to format
423423
let encodings: Vec<_> = column.encodings().collect();
424-
encodings_arr.push(format!("{:?}", encodings));
424+
encodings_arr.push(format!("{encodings:?}"));
425425
index_page_offset_arr.push(column.index_page_offset());
426426
dictionary_page_offset_arr.push(column.dictionary_page_offset());
427427
data_page_offset_arr.push(column.data_page_offset());

datafusion/core/tests/dataframe/mod.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -614,11 +614,9 @@ async fn test_find_qualified_names() -> Result<()> {
614614

615615
// Expected results for each column
616616
let binding = TableReference::bare("aggregate_test_100");
617-
let expected = vec![
618-
(Some(&binding), "c1"),
617+
let expected = [(Some(&binding), "c1"),
619618
(Some(&binding), "c2"),
620-
(Some(&binding), "c3"),
621-
];
619+
(Some(&binding), "c3")];
622620

623621
// Verify we got the expected number of results
624622
assert_eq!(columns.len(), expected.len(), "Expected {} columns, got {}", expected.len(), columns.len());
@@ -629,14 +627,11 @@ async fn test_find_qualified_names() -> Result<()> {
629627
let (expected_table_ref, expected_field_name) = expected;
630628

631629
// Check table reference
632-
assert_eq!(actual_table_ref, expected_table_ref,
633-
"Column {}: expected table reference {:?}, got {:?}",
634-
i, expected_table_ref, actual_table_ref);
630+
assert_eq!(actual_table_ref, expected_table_ref, "Column {i}: expected table reference {expected_table_ref:?}, got {actual_table_ref:?}");
635631

636632
// Check field name
637633
assert_eq!(actual_field_ref.name(), *expected_field_name,
638-
"Column {}: expected field name '{}', got '{}'",
639-
i, expected_field_name, actual_field_ref.name());
634+
"Column {i}: expected field name '{expected_field_name}', got '{actual_field_ref}'");
640635
}
641636

642637
Ok(())

0 commit comments

Comments
 (0)