mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Clippy
This commit is contained in:
parent
5624c492da
commit
b05874924f
4 changed files with 17 additions and 20 deletions
|
@ -457,6 +457,10 @@ impl Pools {
|
|||
self.0.len()
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.len() == 0
|
||||
}
|
||||
|
||||
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