diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-04-09 23:07:18 +0200 | 
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-04-09 23:22:14 +0200 | 
| commit | 81c320ea7786a2b5a07a165aedacb438ae14fd74 (patch) | |
| tree | 308dc087deac08d0d14d4b635760565f3ccab06a /compiler/rustc_parse/src/parser/generics.rs | |
| parent | 6fceb0f6456d4bf526634ef8a3759c0c98ffaa79 (diff) | |
| download | rust-81c320ea7786a2b5a07a165aedacb438ae14fd74.tar.gz rust-81c320ea7786a2b5a07a165aedacb438ae14fd74.zip | |
Fix some clippy::complexity
Diffstat (limited to 'compiler/rustc_parse/src/parser/generics.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/generics.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_parse/src/parser/generics.rs b/compiler/rustc_parse/src/parser/generics.rs index 8d0f168e09d..f8ef1307c98 100644 --- a/compiler/rustc_parse/src/parser/generics.rs +++ b/compiler/rustc_parse/src/parser/generics.rs @@ -53,7 +53,7 @@ impl<'a> Parser<'a> { let snapshot = self.create_snapshot_for_diagnostic(); match self.parse_ty() { Ok(p) => { - if let TyKind::ImplTrait(_, bounds) = &(*p).kind { + if let TyKind::ImplTrait(_, bounds) = &p.kind { let span = impl_span.to(self.token.span.shrink_to_lo()); let mut err = self.struct_span_err( span, | 
