Remove unnecessary impl Clean<String> for InternedString.

This commit is contained in:
Nicholas Nethercote 2019-10-20 09:59:26 +11:00
parent c325553a30
commit 78c3427308

View file

@ -31,7 +31,6 @@ use syntax::attr;
use syntax_expand::base::MacroKind;
use syntax::source_map::DUMMY_SP;
use syntax::symbol::{Symbol, kw, sym};
use syntax::symbol::InternedString;
use syntax_pos::{self, Pos, FileName};
use std::collections::hash_map::Entry;
@ -3701,13 +3700,6 @@ impl Clean<String> for ast::Name {
}
}
impl Clean<String> for InternedString {
#[inline]
fn clean(&self, _: &DocContext<'_>) -> String {
self.to_string()
}
}
#[derive(Clone, Debug)]
pub struct Typedef {
pub type_: Type,