projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
core: replace vec.truncate(0) with vec.clear()
[nihav.git]
/
nihav-core
/
src
/
frame.rs
diff --git
a/nihav-core/src/frame.rs
b/nihav-core/src/frame.rs
index 31cf8e81991a519d26827e13913175a6d3cd1dd6..f596dc95ad2b1d02b684c6563be6bd0492a4e5ec 100644
(file)
--- a/
nihav-core/src/frame.rs
+++ b/
nihav-core/src/frame.rs
@@
-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(
);
}
}