Skip to content

Commit

Permalink
Remove the From<InternedString> for String impl.
Browse files Browse the repository at this point in the history
It's not used.
  • Loading branch information
nnethercote committed May 10, 2019
1 parent 0e27c36 commit cb7eacb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libsyntax_pos/symbol.rs
Expand Up @@ -840,12 +840,6 @@ impl<'a> PartialEq<InternedString> for &'a String {
}
}

impl std::convert::From<InternedString> for String {
fn from(val: InternedString) -> String {
val.as_symbol().to_string()
}
}

impl fmt::Debug for InternedString {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.with(|str| fmt::Debug::fmt(&str, f))
Expand Down

0 comments on commit cb7eacb

Please sign in to comment.