Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary impl Clean<String> for InternedString.
  • Loading branch information
nnethercote committed Oct 21, 2019
commit 78c342730840248a98d81f7cc10b06c69831751b
8 changes: 0 additions & 8 deletions src/librustdoc/clean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down