mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Clippy is_empty
This commit is contained in:
parent
3df5be6528
commit
87a1b3b42d
1 changed files with 4 additions and 0 deletions
|
@ -444,6 +444,10 @@ impl Pools {
|
|||
self.0.len()
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.0.is_empty()
|
||||
}
|
||||
|
||||
pub fn get_mut(&mut self, rank: Rank) -> &mut Vec<Variable> {
|
||||
match self.0.get_mut(rank.into_usize()) {
|
||||
Some(reference) => reference,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue