Skip to content

Commit a1cd79f

Browse files
committed
Remove Encodable/Decodable impls for LocalInternedString.
1 parent 6025fc8 commit a1cd79f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/libsyntax_pos/symbol.rs

-12
Original file line numberDiff line numberDiff line change
@@ -1231,18 +1231,6 @@ impl fmt::Display for LocalInternedString {
12311231
}
12321232
}
12331233

1234-
impl Decodable for LocalInternedString {
1235-
fn decode<D: Decoder>(d: &mut D) -> Result<LocalInternedString, D::Error> {
1236-
Ok(LocalInternedString::intern(&d.read_str()?))
1237-
}
1238-
}
1239-
1240-
impl Encodable for LocalInternedString {
1241-
fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error> {
1242-
s.emit_str(self.string)
1243-
}
1244-
}
1245-
12461234
/// An alternative to `Symbol` that is focused on string contents. It has two
12471235
/// main differences to `Symbol`.
12481236
///

0 commit comments

Comments
 (0)