1
Fork 0

Remove Encodable/Decodable impls for LocalInternedString.

This commit is contained in:
Nicholas Nethercote 2019-09-04 09:48:03 +10:00
parent 6025fc843a
commit a1cd79ff4e

View file

@ -1231,18 +1231,6 @@ impl fmt::Display for LocalInternedString {
}
}
impl Decodable for LocalInternedString {
fn decode<D: Decoder>(d: &mut D) -> Result<LocalInternedString, D::Error> {
Ok(LocalInternedString::intern(&d.read_str()?))
}
}
impl Encodable for LocalInternedString {
fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error> {
s.emit_str(self.string)
}
}
/// An alternative to `Symbol` that is focused on string contents. It has two
/// main differences to `Symbol`.
///