Fix warnings about unnecessary lifetime bounds

Rustup https://github.com/rust-lang/rust/pull/61172
This commit is contained in:
Lzu Tao
2019-06-20 01:36:23 +07:00
parent 149a988146
commit 4fa498a3eb
34 changed files with 83 additions and 87 deletions

View File

@@ -41,7 +41,7 @@ impl CognitiveComplexity {
impl_lint_pass!(CognitiveComplexity => [COGNITIVE_COMPLEXITY]);
impl CognitiveComplexity {
fn check<'a, 'tcx: 'a>(&mut self, cx: &'a LateContext<'a, 'tcx>, body: &'tcx Body, span: Span) {
fn check<'a, 'tcx>(&mut self, cx: &'a LateContext<'a, 'tcx>, body: &'tcx Body, span: Span) {
if in_macro_or_desugar(span) {
return;
}
@@ -132,7 +132,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CognitiveComplexity {
}
}
struct CCHelper<'a, 'tcx: 'a> {
struct CCHelper<'a, 'tcx> {
match_arms: u64,
divergence: u64,
returns: u64,