diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-10-26 20:02:06 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-10-30 10:12:56 -0400 |
| commit | bfecb18771aa0249efe05dd7c35fa232f180bb70 (patch) | |
| tree | e7362add81a4839a9b4d30896210b30a58e9edff /compiler/rustc_ast_lowering/src/path.rs | |
| parent | 388ef349043f20a1a8a3011eaf49dee220485e0a (diff) | |
| download | rust-bfecb18771aa0249efe05dd7c35fa232f180bb70.tar.gz rust-bfecb18771aa0249efe05dd7c35fa232f180bb70.zip | |
Fix some more clippy warnings
Diffstat (limited to 'compiler/rustc_ast_lowering/src/path.rs')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/path.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_ast_lowering/src/path.rs b/compiler/rustc_ast_lowering/src/path.rs index cf68dfb9ae1..e1eed168b31 100644 --- a/compiler/rustc_ast_lowering/src/path.rs +++ b/compiler/rustc_ast_lowering/src/path.rs @@ -262,10 +262,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { self.lower_angle_bracketed_parameter_data(&Default::default(), param_mode, itctx) }; - let has_lifetimes = generic_args.args.iter().any(|arg| match arg { - GenericArg::Lifetime(_) => true, - _ => false, - }); + let has_lifetimes = + generic_args.args.iter().any(|arg| matches!(arg, GenericArg::Lifetime(_))); let first_generic_span = generic_args .args .iter() |
