diff --git a/parquet/src/util/cursor.rs b/parquet/src/util/cursor.rs index bce8383767cf..eaed6c7010e6 100644 --- a/parquet/src/util/cursor.rs +++ b/parquet/src/util/cursor.rs @@ -46,10 +46,11 @@ impl fmt::Debug for SliceableCursor { } impl SliceableCursor { - pub fn new(content: Vec) -> Self { - let size = content.len(); + pub fn new(content: impl Into>>) -> Self { + let inner = content.into(); + let size = inner.len(); SliceableCursor { - inner: Arc::new(content), + inner, start: 0, pos: 0, length: size,