core: replace vec.truncate(0) with vec.clear()
[nihav.git] / nihav-core / src / frame.rs
index 31cf8e81991a519d26827e13913175a6d3cd1dd6..f596dc95ad2b1d02b684c6563be6bd0492a4e5ec 100644 (file)
@@ -752,7 +752,7 @@ impl<T:Copy> NAVideoBufferPool<T> {
     }
     /// Clears the pool from all frames.
     pub fn reset(&mut self) {
-        self.pool.truncate(0);
+        self.pool.clear();
     }
 }