Remove needless returns detected by clippy in the compiler

This commit is contained in:
Eduardo Sánchez Muñoz 2024-09-09 12:22:00 +02:00
parent adf8d168af
commit 0b20ffcb63
38 changed files with 66 additions and 75 deletions

View file

@ -1038,7 +1038,7 @@ fn report_trait_method_mismatch<'tcx>(
false,
);
return diag.emit();
diag.emit()
}
fn check_region_bounds_on_impl_item<'tcx>(

View file

@ -274,7 +274,7 @@ fn visit_implementation_of_dispatch_from_dyn(checker: &Checker<'_>) -> Result<()
return false;
}
return true;
true
})
.collect::<Vec<_>>();