We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b4a063 commit a0da5d7Copy full SHA for a0da5d7
src/types.rs
@@ -944,16 +944,10 @@ fn join_bounds_inner(
944
// Whether a PathSegment segment includes internal array containing more than one item
945
let is_segment_with_multi_items_array = |seg: &ast::PathSegment| {
946
if let Some(args_in) = &seg.args {
947
- match &**args_in {
948
- ast::AngleBracketed(args) => {
949
- if args.args.len() > 1 {
950
- true
951
- } else {
952
- false
953
- }
954
955
- _ => false,
956
+ matches!(
+ args_in.deref(),
+ ast::GenericArgs::AngleBracketed(bracket_args) if bracket_args.args.len() > 1
+ )
957
} else {
958
false
959
}
0 commit comments