Skip to content

Commit

Permalink
Update clippy_lints/src/unnecessary_reserve.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com>
  • Loading branch information
kyoto7250 and Serial-ATA authored Aug 14, 2022
1 parent fa005fb commit cf56250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/unnecessary_reserve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl<'tcx> LateLintPass<'tcx> for UnnecessaryReserve {
cx,
UNNECESSARY_RESERVE,
next_stmt_span,
"this `reserve` no longer makes sense in rustc version >= 1.62",
"unnecessary call to `reserve`",
|diag| {
diag.span_suggestion(
semi_expr.span,
Expand Down

0 comments on commit cf56250

Please sign in to comment.