From c56510e5fd7e9790005fb256e3a023336a6eeaab Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Sun, 10 Mar 2019 17:09:42 -0600 Subject: [PATCH] projection takes slice instead of vec --- rust/arrow/src/datatypes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/arrow/src/datatypes.rs b/rust/arrow/src/datatypes.rs index e0fab5c9a8762..34860350e7357 100644 --- a/rust/arrow/src/datatypes.rs +++ b/rust/arrow/src/datatypes.rs @@ -754,7 +754,7 @@ impl Schema { } /// Create a new schema by applying a projection to this schema's fields - pub fn projection(&self, projection: &Vec) -> Result> { + pub fn projection(&self, projection: &[usize]) -> Result> { let mut fields: Vec = Vec::with_capacity(projection.len()); for i in projection { if *i < self.fields().len() {