Skip to content

Commit 151e966

Browse files
committed
Eat dogfood
1 parent 0fcd88d commit 151e966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/any_coerce.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for WrongAnyCoerce {
6464
adjustments[i - 1].target
6565
};
6666
cx.tcx.infer_ctxt().enter(|infcx| {
67-
let opt_lint_data = check_unsize_coercion(infcx, cx.param_env, src_ty, adj.target);
67+
let opt_lint_data = check_unsize_coercion(&infcx, cx.param_env, src_ty, adj.target);
6868
if let Some(lint_data) = opt_lint_data {
6969
// TODO: we might be able to suggest dereferencing in some cases
7070
let cta_str = lint_data.coerced_to_any.to_string();
@@ -88,7 +88,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for WrongAnyCoerce {
8888

8989
/// Returns whether or not this coercion should be linted
9090
fn check_unsize_coercion<'tcx>(
91-
infcx: InferCtxt<'_, '_, 'tcx>,
91+
infcx: &InferCtxt<'_, '_, 'tcx>,
9292
param_env: ty::ParamEnv<'tcx>,
9393
src_ty: Ty<'tcx>,
9494
tgt_ty: Ty<'tcx>,

0 commit comments

Comments
 (0)