Make ItemKind::ExternCrate looks like hir::ItemKind::ExternCrate to make transition over hir::ItemKind simpler
This commit is contained in:
@@ -193,7 +193,7 @@ impl<'a, 'b> fold::DocFolder for CoverageCalculator<'a, 'b> {
|
||||
// don't count items in stripped modules
|
||||
return Some(i);
|
||||
}
|
||||
clean::ImportItem(..) | clean::ExternCrateItem(..) => {
|
||||
clean::ImportItem(..) | clean::ExternCrateItem { .. } => {
|
||||
// docs on `use` and `extern crate` statements are not displayed, so they're not
|
||||
// worth counting
|
||||
return Some(i);
|
||||
|
||||
Reference in New Issue
Block a user