do not set an underscore on parse and only prefix in formatter

This commit is contained in:
rvcas 2020-11-18 08:25:40 -05:00
parent f471d5bbe1
commit 72c85009c6
4 changed files with 9 additions and 7 deletions

View file

@ -1093,7 +1093,7 @@ fn underscore_pattern<'a>() -> impl Parser<'a, Pattern<'a>> {
match output {
Some(name) => Ok((Pattern::Underscore(name), final_state)),
None => Ok((Pattern::Underscore(&"_"), final_state)),
None => Ok((Pattern::Underscore(&""), final_state)),
}
}
}