Skip to content

Commit

Permalink
remove unused Display impl
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed Mar 5, 2019
1 parent 515dbe7 commit e28cf74
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/librustdoc/passes/calculate_doc_coverage.rs
Expand Up @@ -7,7 +7,6 @@ use syntax::attr;
use syntax_pos::FileName;

use std::collections::BTreeMap;
use std::fmt;
use std::ops;

pub const CALCULATE_DOC_COVERAGE: Pass = Pass {
Expand Down Expand Up @@ -67,12 +66,6 @@ impl ops::AddAssign for ItemCount {
}
}

impl fmt::Display for ItemCount {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}/{}", self.with_docs, self.total)
}
}

#[derive(Default)]
struct CoverageCalculator {
items: BTreeMap<FileName, ItemCount>,
Expand Down

0 comments on commit e28cf74

Please sign in to comment.