Rename Decoder::read_nil
and read_unit
.
Because `()` is called "unit" and it makes it match `Encoder::emit_unit`.
This commit is contained in:
parent
cbaeec14f9
commit
88600a6d7f
5 changed files with 7 additions and 7 deletions
|
@ -2419,7 +2419,7 @@ impl<S: Encoder> rustc_serialize::Encodable<S> for AttrId {
|
|||
|
||||
impl<D: Decoder> rustc_serialize::Decodable<D> for AttrId {
|
||||
fn decode(d: &mut D) -> Result<AttrId, D::Error> {
|
||||
d.read_nil().map(|_| crate::attr::mk_attr_id())
|
||||
d.read_unit().map(|_| crate::attr::mk_attr_id())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue