]> git.lizzy.rs Git - rust.git/commitdiff
Remove `Encodable`/`Decodable` impls for `LocalInternedString`.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 3 Sep 2019 23:48:03 +0000 (09:48 +1000)
committerNicholas Nethercote <nnethercote@mozilla.com>
Wed, 4 Sep 2019 04:41:09 +0000 (14:41 +1000)
src/libsyntax_pos/symbol.rs

index aeea3c920af570ccf027fd07c74fbefcde55388e..32ca1fdff93931236d51dd2e953b8802d3ade924 100644 (file)
@@ -1231,18 +1231,6 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
     }
 }
 
-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`.
 ///