From fb53b4c50763b7aad99509984c79e747cf68b8cf Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 15 Jan 2024 17:02:26 +0100 Subject: [PATCH] Surely this is the last fix --- examples/extension.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/extension.rs b/examples/extension.rs index 793526c818..83e1fe5342 100644 --- a/examples/extension.rs +++ b/examples/extension.rs @@ -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; @@ -39,7 +42,7 @@ fn write_ipc(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])?; + let batch = Chunk::try_new(vec![Box::new(array) as Box])?; writer.start()?; writer.write(&batch, None)?;