Skip to content

Commit

Permalink
Surely this is the last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 15, 2024
1 parent 421c55f commit fb53b4c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/extension.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use std::io::{Cursor, Seek, Write};
use std::{
io::{Cursor, Seek, Write},
sync::Arc,
};

use re_arrow2::array::*;
use re_arrow2::chunk::Chunk;
Expand Down Expand Up @@ -39,7 +42,7 @@ fn write_ipc<W: Write + Seek>(writer: W, array: impl Array + 'static) -> Result<
let options = write::WriteOptions { compression: None };
let mut writer = write::FileWriter::new(writer, schema, None, options);

let batch = Chunk::try_new(vec![Arc::new(array) as Box<dyn Array>])?;
let batch = Chunk::try_new(vec![Box::new(array) as Box<dyn Array>])?;

writer.start()?;
writer.write(&batch, None)?;
Expand Down

0 comments on commit fb53b4c

Please sign in to comment.