mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
update with new clippy lints
This commit is contained in:
parent
51b360b578
commit
0dd2cec09a
22 changed files with 53 additions and 77 deletions
|
@ -5971,7 +5971,7 @@ fn substitute_in_stmt_help<'a>(
|
|||
|
||||
if opt_remainder.is_some() || opt_continuation.is_some() {
|
||||
let remainder = opt_remainder.unwrap_or(remainder);
|
||||
let continuation = opt_continuation.unwrap_or_else(|| *continuation);
|
||||
let continuation = opt_continuation.unwrap_or(*continuation);
|
||||
|
||||
Some(arena.alloc(Join {
|
||||
id: *id,
|
||||
|
|
|
@ -1180,8 +1180,7 @@ impl<'a> Layout<'a> {
|
|||
match variant {
|
||||
NonRecursive(fields) => fields
|
||||
.iter()
|
||||
.map(|ls| ls.iter())
|
||||
.flatten()
|
||||
.flat_map(|ls| ls.iter())
|
||||
.any(|f| f.contains_refcounted()),
|
||||
Recursive(_)
|
||||
| NullableWrapped { .. }
|
||||
|
|
|
@ -117,7 +117,7 @@ fn insert_jumps<'a>(
|
|||
|
||||
if opt_remainder.is_some() || opt_continuation.is_some() {
|
||||
let remainder = opt_remainder.unwrap_or(remainder);
|
||||
let continuation = opt_continuation.unwrap_or_else(|| *continuation);
|
||||
let continuation = opt_continuation.unwrap_or(*continuation);
|
||||
|
||||
Some(arena.alloc(Join {
|
||||
id: *id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue