Fix clippy lints

This commit is contained in:
Paul Hauner
2019-05-09 13:35:00 +10:00
parent 0ac278f44d
commit 2a938f2fd5
13 changed files with 20 additions and 23 deletions

View File

@@ -22,6 +22,10 @@ impl<T, N: Unsigned> FixedLenVec<T, N> {
self.vec.len()
}
pub fn is_empty(&self) -> bool {
self.len() == 0
}
pub fn capacity() -> usize {
N::to_usize()
}