Skip to content

Commit 7ce7522

Browse files
lqdcompiler-errors
authored andcommitted
remove unneeded pattern matching
1 parent d1b810d commit 7ce7522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/formality-types/src/grammar/ty/parse_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl CoreParse<Rust> for AliasTy {
110110
fn parse_parameters<'t>(
111111
p: &mut ActiveVariant<'_, 't, Rust>,
112112
) -> Result<Vec<Parameter>, Set<ParseError<'t>>> {
113-
if let Err(_) = p.expect_char('<') {
113+
if p.expect_char('<').is_err() {
114114
return Ok(vec![]);
115115
}
116116
let parameters: Vec<Parameter> = p.comma_nonterminal()?;

0 commit comments

Comments
 (0)