From 061359540b4b3535112b6e90652e34493d89561b Mon Sep 17 00:00:00 2001 From: xavo95 Date: Sun, 12 Jan 2025 19:32:55 +0100 Subject: [PATCH] Fix bug --- src/t_array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/t_array.rs b/src/t_array.rs index bbd4ab1..1cc928b 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) { + pub fn clear(&mut self) { 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)