Skip to content

Commit 21b9876

Browse files
committed
fix: linter
1 parent 841ce0d commit 21b9876

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/unnecessary_reserve.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ impl<'tcx> LateLintPass<'tcx> for UnnecessaryReserve {
8383
extract_msrv_attr!(LateContext);
8484
}
8585

86-
#[must_use]
87-
fn acceptable_type<'tcx>(cx: &LateContext<'tcx>, struct_calling_on: &Expr<'_>) -> bool {
86+
fn acceptable_type(cx: &LateContext<'_>, struct_calling_on: &Expr<'_>) -> bool {
8887
let acceptable_types = [sym::Vec, sym::VecDeque];
8988
acceptable_types.iter().any(|&acceptable_ty| {
9089
match cx.typeck_results().expr_ty(struct_calling_on).peel_refs().kind() {

0 commit comments

Comments
 (0)