1
Fork 0
This commit is contained in:
Matthias Krüger 2020-03-16 16:00:16 +01:00
parent 24f6d643fe
commit a97f60b8e3
18 changed files with 32 additions and 32 deletions

View file

@ -191,7 +191,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for DocMarkdown {
if self.in_trait_impl || in_external_macro(cx.tcx.sess, item.span) {
return;
}
if let hir::ImplItemKind::Method(ref sig, body_id) = item.kind {
if let hir::ImplItemKind::Fn(ref sig, body_id) = item.kind {
lint_for_missing_headers(cx, item.hir_id, item.span, sig, headers, Some(body_id));
}
}