Use Option::is_some_and
and Result::is_ok_and
in the compiler
This commit is contained in:
parent
70db836922
commit
fb0f74a8c9
87 changed files with 148 additions and 158 deletions
|
@ -845,7 +845,7 @@ impl<'a> Parser<'a> {
|
|||
//
|
||||
// `x.foo::<u32>>>(3)`
|
||||
let parsed_angle_bracket_args =
|
||||
segment.args.as_ref().map_or(false, |args| args.is_angle_bracketed());
|
||||
segment.args.as_ref().is_some_and(|args| args.is_angle_bracketed());
|
||||
|
||||
debug!(
|
||||
"check_trailing_angle_brackets: parsed_angle_bracket_args={:?}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue