mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Fix clippy warnings
This commit is contained in:
parent
e6245c41f5
commit
6206418b67
4 changed files with 4 additions and 4 deletions
|
@ -37,6 +37,7 @@ pub struct CodeBuilder {
|
|||
vm_stack: Vec<Option<Symbol>>,
|
||||
}
|
||||
|
||||
#[allow(clippy::new_without_default)]
|
||||
impl CodeBuilder {
|
||||
pub fn new() -> Self {
|
||||
CodeBuilder {
|
||||
|
@ -72,7 +73,7 @@ impl CodeBuilder {
|
|||
let mut len = old_len;
|
||||
let mut min_len = len;
|
||||
for inst in instructions {
|
||||
let (pops, push) = get_pops_and_pushes(&inst);
|
||||
let (pops, push) = get_pops_and_pushes(inst);
|
||||
len -= pops as usize;
|
||||
if len < min_len {
|
||||
min_len = len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue