Remove impl Display for FileName and add FileNameDisplay wrapper type

This commit is contained in:
Andy Wang
2021-04-20 01:11:12 +01:00
parent ec34cd94dd
commit f8e55da6de
2 changed files with 40 additions and 13 deletions

View File

@@ -219,7 +219,7 @@ impl<'a, 'b> fold::DocFolder for CoverageCalculator<'a, 'b> {
// unless the user had an explicit `allow`
let should_have_docs =
level != lint::Level::Allow || matches!(source, LintLevelSource::Default);
debug!("counting {:?} {:?} in {}", i.type_(), i.name, filename);
debug!("counting {:?} {:?} in {:?}", i.type_(), i.name, filename);
self.items.entry(filename).or_default().count_item(
has_docs,
has_doc_example,