]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/inconsistent_struct_constructor.rs
modify code
[rust.git] / clippy_lints / src / inconsistent_struct_constructor.rs
index 388bb3727f96cfa9753eb7b8df887158526d5be0..3d44a669d8f0507ed1870a6fe81a4bea12aa38d7 100644 (file)
@@ -63,7 +63,7 @@
 
 declare_lint_pass!(InconsistentStructConstructor => [INCONSISTENT_STRUCT_CONSTRUCTOR]);
 
-impl LateLintPass<'_> for InconsistentStructConstructor {
+impl<'tcx> LateLintPass<'tcx> for InconsistentStructConstructor {
     fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) {
         if_chain! {
             if !expr.span.from_expansion();