diff --git a/src/collections/scoped_buffer.rs b/src/collections/scoped_buffer.rs index 1416a1634df2816c4b7127dcec1ded5ec63a6a64..4827b030ab01d643a3d8d98e4b2d38894fdbec09 100644 --- a/src/collections/scoped_buffer.rs +++ b/src/collections/scoped_buffer.rs @@ -43,12 +43,12 @@ impl ScopedBuffer { impl ScopedBuffer { pub(crate) fn start_section_initialized(&mut self, initialize_with: &[T]) -> ScopedSection { let start_size = self.inner.len() as u32; - let data_size = initialize_with.len() as u32; + let _data_size = initialize_with.len() as u32; self.inner.extend_from_slice(initialize_with); ScopedSection{ inner: &mut self.inner, start_size, - #[cfg(debug_assertions)] cur_size: start_size + data_size, + #[cfg(debug_assertions)] cur_size: start_size + _data_size, } } }