about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2018-10-04 21:59:30 +0200
committerPhilipp Hansch <dev@phansch.net>2018-10-04 21:59:30 +0200
commit391d53db6657be45fb85835c3e042e2287035ece (patch)
treebcda4c1b46cda61b4857b74b39c93df05c06b258
parentc0ab8b2531f273f0ce93dc64df83d936fc505604 (diff)
downloadrust-391d53db6657be45fb85835c3e042e2287035ece.tar.gz
rust-391d53db6657be45fb85835c3e042e2287035ece.zip
Add hidden lifetime parameters to fix warning
-rw-r--r--clippy_lints/src/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs
index d3aa8de825b..a27bbb40e6e 100644
--- a/clippy_lints/src/types.rs
+++ b/clippy_lints/src/types.rs
@@ -1076,7 +1076,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CastPass {
     }
 }
 
-fn lint_fn_to_numeric_cast(cx: &LateContext<'_, '_>, expr: &Expr, cast_expr: &Expr, cast_from: Ty, cast_to: Ty) {
+fn lint_fn_to_numeric_cast(cx: &LateContext<'_, '_>, expr: &Expr, cast_expr: &Expr, cast_from: Ty<'_>, cast_to: Ty<'_>) {
     match cast_from.sty {
         ty::FnDef(..) | ty::FnPtr(_) => {
             let from_snippet = snippet(cx, cast_expr.span, "x");