Remove Encodable
/Decodable
impls for LocalInternedString
.
This commit is contained in:
parent
6025fc843a
commit
a1cd79ff4e
1 changed files with 0 additions and 12 deletions
|
@ -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`.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue