Skip to content

Commit

Permalink
remove unneeded pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
lqd authored and compiler-errors committed May 14, 2024
1 parent d1b810d commit 7ce7522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/formality-types/src/grammar/ty/parse_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl CoreParse<Rust> for AliasTy {
fn parse_parameters<'t>(
p: &mut ActiveVariant<'_, 't, Rust>,
) -> Result<Vec<Parameter>, Set<ParseError<'t>>> {
if let Err(_) = p.expect_char('<') {
if p.expect_char('<').is_err() {
return Ok(vec![]);
}
let parameters: Vec<Parameter> = p.comma_nonterminal()?;
Expand Down

0 comments on commit 7ce7522

Please sign in to comment.