mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Clippy makes a good point.
This commit is contained in:
parent
db2d99f56d
commit
f11479d255
1 changed files with 2 additions and 4 deletions
|
@ -77,10 +77,8 @@ pub fn package_name<'a>() -> impl Parser<'a, PackageName<'a>> {
|
|||
|
||||
map!(
|
||||
and!(
|
||||
move |arena, state| parse_package_part(arena, state),
|
||||
skip_first!(ascii_char('/'), move |arena, state| parse_package_part(
|
||||
arena, state
|
||||
))
|
||||
parse_package_part,
|
||||
skip_first!(ascii_char('/'), parse_package_part)
|
||||
),
|
||||
|(account, pkg)| { PackageName { account, pkg } }
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue