mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Do what clippy says
This commit is contained in:
parent
038bad7123
commit
a57c3d6ec8
2 changed files with 41 additions and 43 deletions
|
@ -210,8 +210,7 @@ where
|
|||
noncapitalized_parts,
|
||||
);
|
||||
}
|
||||
} else {
|
||||
if noncapitalized_parts.is_empty() {
|
||||
} else if noncapitalized_parts.is_empty() {
|
||||
// We have capitalized parts only, so this must be a tag.
|
||||
match capitalized_parts.first() {
|
||||
Some(value) => {
|
||||
|
@ -256,7 +255,6 @@ where
|
|||
module_parts: capitalized_parts.into_bump_slice(),
|
||||
value: noncapitalized_parts.into_bump_slice(),
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
let state = state.advance_without_indenting(chars_parsed)?;
|
||||
|
|
|
@ -1068,7 +1068,7 @@ fn ident_to_expr<'a>(arena: &'a Bump, src: Ident<'a>) -> Expr<'a> {
|
|||
Ident::GlobalTag(string) => Expr::GlobalTag(string),
|
||||
Ident::PrivateTag(string) => Expr::PrivateTag(string),
|
||||
Ident::Access(info) => {
|
||||
let mut iter = info.value.into_iter();
|
||||
let mut iter = info.value.iter();
|
||||
|
||||
// The first value in the iterator is the variable name,
|
||||
// e.g. `foo` in `foo.bar.baz`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue