Apache DataFusion SQL Query Engine
ARROW-2507: [Rust] Don't take a reference when not needed.
Bruce Mitchener230a418fe92b
diff --git a/rust/src/list.rs b/rust/src/list.rsindex 8c4da10592..f1e9e6a53d 100644--- a/rust/src/list.rs+++ b/rust/src/list.rs@@ -54,7 +54,7 @@ impl<T> List<T> {pub fn slice(&self, index: usize) -> &[T] {let start = *self.offsets.get(index) as usize;let end = *self.offsets.get(index + 1) as usize;- &self.data.slice(start, end)+ self.data.slice(start, end)}}