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:
parent
dc08bc51f2
commit
b983e42936
23 changed files with 123 additions and 140 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue