Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cb7eacb

Browse files
committedMay 10, 2019
Remove the From<InternedString> for String impl.
It's not used.
1 parent 0e27c36 commit cb7eacb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎src/libsyntax_pos/symbol.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -840,12 +840,6 @@ impl<'a> PartialEq<InternedString> for &'a String {
840840
}
841841
}
842842

843-
impl std::convert::From<InternedString> for String {
844-
fn from(val: InternedString) -> String {
845-
val.as_symbol().to_string()
846-
}
847-
}
848-
849843
impl fmt::Debug for InternedString {
850844
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
851845
self.with(|str| fmt::Debug::fmt(&str, f))

0 commit comments

Comments
 (0)
Please sign in to comment.