diff --git a/src/t_array.rs b/src/t_array.rs index ad5674b..bbd4ab1 100644 --- a/src/t_array.rs +++ b/src/t_array.rs @@ -40,7 +40,7 @@ impl TArray { self.cap } - pub fn clear(&mut self, len: u32) -> Self { + pub fn clear(&mut self, len: u32) { if self.data_ptr != 0 && self.len > 0 { let data = unsafe { std::slice::from_raw_parts_mut(self.data_ptr as *mut u8, self.len as usize)