Rename rustc_serialize::opaque::Encoder as MemEncoder.
This avoids the name clash with `rustc_serialize::Encoder` (a trait), and allows lots qualifiers to be removed and imports to be simplified (e.g. fewer `as` imports).
This commit is contained in:
@@ -1911,13 +1911,13 @@ impl_pos! {
|
||||
pub struct CharPos(pub usize);
|
||||
}
|
||||
|
||||
impl<S: rustc_serialize::Encoder> Encodable<S> for BytePos {
|
||||
impl<S: Encoder> Encodable<S> for BytePos {
|
||||
fn encode(&self, s: &mut S) {
|
||||
s.emit_u32(self.0);
|
||||
}
|
||||
}
|
||||
|
||||
impl<D: rustc_serialize::Decoder> Decodable<D> for BytePos {
|
||||
impl<D: Decoder> Decodable<D> for BytePos {
|
||||
fn decode(d: &mut D) -> BytePos {
|
||||
BytePos(d.read_u32())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user