mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Remove some unnecessary stuff - thanks, clippy!
This commit is contained in:
parent
aaeef42071
commit
07adfafd47
3 changed files with 6 additions and 9 deletions
|
@ -345,15 +345,15 @@ pub fn assigned_field_to_pattern<'a>(
|
|||
value: pattern,
|
||||
});
|
||||
if spaces.is_empty() {
|
||||
Pattern::RecordField(name.value.into(), result)
|
||||
Pattern::RecordField(name.value, result)
|
||||
} else {
|
||||
Pattern::SpaceAfter(
|
||||
arena.alloc(Pattern::RecordField(name.value.into(), result)),
|
||||
arena.alloc(Pattern::RecordField(name.value, result)),
|
||||
spaces,
|
||||
)
|
||||
}
|
||||
}
|
||||
AssignedField::LabelOnly(name) => Pattern::Identifier(name.value.into()),
|
||||
AssignedField::LabelOnly(name) => Pattern::Identifier(name.value),
|
||||
AssignedField::SpaceBefore(nested, spaces) => Pattern::SpaceBefore(
|
||||
arena.alloc(assigned_field_to_pattern(arena, nested)?),
|
||||
spaces,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue