Skip to content

Commit e28cf74

Browse files
remove unused Display impl
1 parent 515dbe7 commit e28cf74

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/librustdoc/passes/calculate_doc_coverage.rs

-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use syntax::attr;
77
use syntax_pos::FileName;
88

99
use std::collections::BTreeMap;
10-
use std::fmt;
1110
use std::ops;
1211

1312
pub const CALCULATE_DOC_COVERAGE: Pass = Pass {
@@ -67,12 +66,6 @@ impl ops::AddAssign for ItemCount {
6766
}
6867
}
6968

70-
impl fmt::Display for ItemCount {
71-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
72-
write!(f, "{}/{}", self.with_docs, self.total)
73-
}
74-
}
75-
7669
#[derive(Default)]
7770
struct CoverageCalculator {
7871
items: BTreeMap<FileName, ItemCount>,

0 commit comments

Comments
 (0)