Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Jul 21, 2024
1 parent 28d4deb commit eea96b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion native/core/benches/cast_from_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn create_utf8_batch() -> RecordBatch {
}
}
let array = b.finish();

RecordBatch::try_new(schema.clone(), vec![Arc::new(array)]).unwrap()
}

Expand Down
2 changes: 1 addition & 1 deletion native/core/benches/cast_numeric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn create_int32_batch() -> RecordBatch {
}
}
let array = b.finish();

RecordBatch::try_new(schema.clone(), vec![Arc::new(array)]).unwrap()
}

Expand Down
2 changes: 1 addition & 1 deletion native/core/benches/shuffle_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn create_batch() -> RecordBatch {
}
}
let array = b.finish();

RecordBatch::try_new(schema.clone(), vec![Arc::new(array)]).unwrap()
}

Expand Down
4 changes: 3 additions & 1 deletion native/core/src/execution/datafusion/spark_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,9 @@ mod tests {

#[test]
fn test_str() {
let input = ["hello", "bar", "", "😁", "天地", "a", "ab", "abc", "abcd", "abcde"]
let input = [
"hello", "bar", "", "😁", "天地", "a", "ab", "abc", "abcd", "abcde",
]
.iter()
.map(|s| Some(s.to_string()))
.collect::<Vec<Option<String>>>();
Expand Down

0 comments on commit eea96b3

Please sign in to comment.