Skip to content

Commit

Permalink
Clippy again
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusAdam committed Aug 29, 2024
1 parent 3691b0d commit 8f65fa6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/paralegal-flow/src/ann/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ pub(crate) fn otype_ann_match(ann: &ast::AttrArgs, tcx: TyCtxt) -> Result<Vec<De
return None;
}
let ExprKind::Path(qself, path) = &parser.parse_expr().ok()?.kind else {
return Some(Result::Err(format!("Expected path expression")));
return Some(Result::Err(format!(
"Expected path expression, got {:?}",
dargs.tokens
)));
};
if parser.token.kind != TokenKind::Eof {
parser.expect(&TokenKind::Comma).ok()?;
Expand All @@ -260,7 +263,7 @@ pub(crate) fn otype_ann_match(ann: &ast::AttrArgs, tcx: TyCtxt) -> Result<Vec<De
})
.collect()
}
_ => Result::Err("Expected delimoted annotation".to_owned()),
_ => Result::Err("Expected delimited annotation".to_owned()),
}
}

Expand Down

0 comments on commit 8f65fa6

Please sign in to comment.