mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
clippy
This commit is contained in:
parent
2fc9d20867
commit
9d10b060da
2 changed files with 3 additions and 7 deletions
|
@ -501,7 +501,7 @@ fn desugar_bin_op<'a>(arena: &'a Bump, loc_expr: &'a Located<Expr<'_>>) -> &'a L
|
|||
(NonAssociative, NonAssociative) => {
|
||||
// Both operators were non-associative, e.g. (True == False == False).
|
||||
// We should tell the author to disambiguate by grouping them with parens.
|
||||
let bad_op = next_op.clone();
|
||||
let bad_op = next_op;
|
||||
let right = arg_stack.pop().unwrap();
|
||||
let left = arg_stack.pop().unwrap();
|
||||
let broken_expr = new_op_expr(
|
||||
|
@ -675,7 +675,7 @@ impl<'a> Iterator for Infixes<'a> {
|
|||
Expr::BinOp((left, loc_op, right))
|
||||
| Expr::Nested(Expr::BinOp((left, loc_op, right))) => {
|
||||
self.remaining_expr = Some(right);
|
||||
self.next_op = Some(loc_op.clone());
|
||||
self.next_op = Some(*loc_op);
|
||||
|
||||
InfixToken::Arg(left)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue