mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
Fix clippy lint that we should define is_empty
This commit is contained in:
parent
eb00563b09
commit
e9d3c6e5c4
|
@ -147,6 +147,10 @@ impl<K, V> HashMap<K, V> {
|
||||||
self.number_of_elements
|
self.number_of_elements
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn is_empty(&self) -> bool {
|
||||||
|
self.number_of_elements == 0
|
||||||
|
}
|
||||||
|
|
||||||
pub fn resize(&mut self, new_size: usize) {
|
pub fn resize(&mut self, new_size: usize) {
|
||||||
assert!(
|
assert!(
|
||||||
new_size >= self.nodes.len(),
|
new_size >= self.nodes.len(),
|
||||||
|
|
Loading…
Reference in a new issue