Apache DataFusion SQL Query Engine
ARROW-2468: [Rust] Builder::slice_mut() should take mut self.
Bruce Mitchener8bc8ebb333ad
diff --git a/rust/src/builder.rs b/rust/src/builder.rsindex e354a2af33..89e00048fe 100644--- a/rust/src/builder.rs+++ b/rust/src/builder.rs@@ -65,7 +65,7 @@ impl<T> Builder<T> {}/// Get the internal byte-aligned memory buffer as a mutable slice- pub fn slice_mut(&self, start: usize, end: usize) -> &mut [T] {+ pub fn slice_mut(&mut self, start: usize, end: usize) -> &mut [T] {assert!(start <= end);assert!(start < self.capacity as usize);assert!(end <= self.capacity as usize);