Skip to content

Commit faadd8f

Browse files
committed
Box HIR Generics and Impl.
1 parent 5ffe8a1 commit faadd8f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clippy_lints/src/new_without_default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for NewWithoutDefault {
6868
..
6969
}) = item.kind
7070
{
71-
for assoc_item in items {
71+
for assoc_item in *items {
7272
if assoc_item.kind == (hir::AssocItemKind::Fn { has_self: false }) {
7373
let impl_item = cx.tcx.hir().impl_item(assoc_item.id);
7474
if in_external_macro(cx.sess(), impl_item.span) {

clippy_lints/src/partialeq_ne_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl<'tcx> LateLintPass<'tcx> for PartialEqNeImpl {
4242
if let Some(eq_trait) = cx.tcx.lang_items().eq_trait();
4343
if trait_ref.path.res.def_id() == eq_trait;
4444
then {
45-
for impl_item in impl_items {
45+
for impl_item in *impl_items {
4646
if impl_item.ident.name == sym::ne {
4747
span_lint_hir(
4848
cx,

clippy_lints/src/serde_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl<'tcx> LateLintPass<'tcx> for SerdeApi {
3636
if did == visit_did {
3737
let mut seen_str = None;
3838
let mut seen_string = None;
39-
for item in items {
39+
for item in *items {
4040
match item.ident.as_str() {
4141
"visit_str" => seen_str = Some(item.span),
4242
"visit_string" => seen_string = Some(item.span),

0 commit comments

Comments
 (0)