Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Use .into()
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Leitao <[email protected]>
  • Loading branch information
AnIrishDuck and jorgecarleitao authored Oct 21, 2022
1 parent 0f91f09 commit e020f08
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/it/io/json/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,10 @@ fn nested_list_records() -> Result<()> {

let c2 = Utf8Array::<i32>::from(&vec![Some("foo"), Some("bar"), None]);

let schema = Schema {
fields: vec![
let schema: Schema = vec![
Field::new("c1", c1.data_type().clone(), true),
Field::new("c2", c2.data_type().clone(), true),
],
metadata: Metadata::default(),
};
].into();

let arrays: Vec<Box<dyn Array>> = vec![Box::new(c1), Box::new(c2)];
let chunk = Chunk::new(arrays);
Expand Down

0 comments on commit e020f08

Please sign in to comment.