Skip to content

Commit 787ddd0

Browse files
committed
More cleanup
1 parent c30c7e1 commit 787ddd0

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

datafusion/core/tests/memory_limit/memory_limit_validation/sort_mem_validation.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,9 @@ fn init_once() {
9898
fn spawn_test_process(test: &str) {
9999
init_once();
100100

101-
let test_path = format!(
102-
"memory_limit::memory_limit_validation::sort_mem_validation::{}",
103-
test
104-
);
105-
info!("Running test: {}", test_path);
101+
let test_path =
102+
format!("memory_limit::memory_limit_validation::sort_mem_validation::{test}");
103+
info!("Running test: {test_path}");
106104

107105
// Run the test command
108106
let output = Command::new("cargo")

datafusion/functions-nested/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ pub(crate) fn get_map_entry_field(data_type: &DataType) -> Result<&Fields> {
260260
}
261261
}
262262
}
263-
_ => internal_err!("Expected a Map type, got {:?}", data_type),
263+
_ => internal_err!("Expected a Map type, got {data_type}"),
264264
}
265265
}
266266

datafusion/spark/src/function/bitmap/bitmap_count.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl ScalarUDFImpl for BitmapCount {
7171
match arg_types.first() {
7272
Some(Binary | BinaryView | FixedSizeBinary(_) | LargeBinary) => Ok(Int64),
7373
Some(data_type) => plan_err!(
74-
"bitmap_count expects Binary/BinaryView/FixedSizeBinary/LargeBinary as argument, got {:?}",
74+
"bitmap_count expects Binary/BinaryView/FixedSizeBinary/LargeBinary as argument, got {:?}",
7575
data_type
7676
),
7777
None => internal_err!("bitmap_count does not support zero arguments"),
@@ -105,7 +105,7 @@ pub fn bitmap_count_inner(arg: &[ArrayRef]) -> Result<ArrayRef> {
105105
downcast_and_count_ones!(input_array, FixedSizeBinaryArray)
106106
}
107107
data_type => {
108-
internal_err!("bitmap_count does not support {:?}", data_type)
108+
internal_err!("bitmap_count does not support {data_type}")
109109
}
110110
};
111111

0 commit comments

Comments
 (0)