Skip to content

Commit 4e23448

Browse files
Appease the clippy
1 parent fa7633d commit 4e23448

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: src/tools/clippy/clippy_lints/src/methods/clone_on_copy.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub(super) fn check(
6161
// ? is a Call, makes sure not to rec *x?, but rather (*x)?
6262
ExprKind::Call(hir_callee, _) => matches!(
6363
hir_callee.kind,
64-
ExprKind::Path(QPath::LangItem(rustc_hir::LangItem::TryTraitBranch, _, _))
64+
ExprKind::Path(QPath::LangItem(rustc_hir::LangItem::TryTraitBranch, ..))
6565
),
6666
ExprKind::MethodCall(_, self_arg, ..) if expr.hir_id == self_arg.hir_id => true,
6767
ExprKind::Match(_, _, MatchSource::TryDesugar(_) | MatchSource::AwaitDesugar)

Diff for: src/tools/clippy/clippy_lints/src/returns.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ fn check_final_expr<'tcx>(
309309
let replacement = if let Some(inner_expr) = inner {
310310
// if desugar of `do yeet`, don't lint
311311
if let ExprKind::Call(path_expr, _) = inner_expr.kind
312-
&& let ExprKind::Path(QPath::LangItem(LangItem::TryTraitFromYeet, _, _)) = path_expr.kind
312+
&& let ExprKind::Path(QPath::LangItem(LangItem::TryTraitFromYeet, ..)) = path_expr.kind
313313
{
314314
return;
315315
}

Diff for: src/tools/clippy/clippy_lints/src/unnecessary_map_on_constructor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl<'tcx> LateLintPass<'tcx> for UnnecessaryMapOnConstructor {
5959
}
6060
},
6161
hir::QPath::TypeRelative(_, path) => path.ident.name,
62-
hir::QPath::LangItem(_, _, _) => return,
62+
hir::QPath::LangItem(..) => return,
6363
};
6464
match constructor_symbol {
6565
sym::Some | sym::Ok if path.ident.name == rustc_span::sym::map => (),

Diff for: src/tools/clippy/clippy_utils/src/ty/type_certainty/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ fn qpath_certainty(cx: &LateContext<'_>, qpath: &QPath<'_>, resolves_to_type: bo
170170
path_segment_certainty(cx, type_certainty(cx, ty), path_segment, resolves_to_type)
171171
},
172172

173-
QPath::LangItem(lang_item, _, _) => {
173+
QPath::LangItem(lang_item, ..) => {
174174
cx.tcx
175175
.lang_items()
176176
.get(*lang_item)

0 commit comments

Comments
 (0)