From 7a198086706ccd00c032eff07b9ec9b634c323ce Mon Sep 17 00:00:00 2001 From: Valerii Hiora Date: Fri, 9 Jan 2015 17:24:42 +0200 Subject: Updated serialization traits --- src/serialization.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/serialization.rs b/src/serialization.rs index f386bb0..4f0fd19 100644 --- a/src/serialization.rs +++ b/src/serialization.rs @@ -166,7 +166,7 @@ impl rustc_serialize::Encoder for Encoder { type Error = Error; fn emit_nil(&mut self) -> Result<(), Error> { Ok(()) } - fn emit_uint(&mut self, v: uint) -> Result<(), Error> { + fn emit_usize(&mut self, v: uint) -> Result<(), Error> { self.emit_i64(v as i64) } fn emit_u8(&mut self, v: u8) -> Result<(), Error> { @@ -181,7 +181,7 @@ impl rustc_serialize::Encoder for Encoder { fn emit_u64(&mut self, v: u64) -> Result<(), Error> { self.emit_i64(v as i64) } - fn emit_int(&mut self, v: int) -> Result<(), Error> { + fn emit_isize(&mut self, v: int) -> Result<(), Error> { self.emit_i64(v as i64) } fn emit_i8(&mut self, v: i8) -> Result<(), Error> { @@ -441,7 +441,7 @@ impl rustc_serialize::Decoder for Decoder { self.toml.take(); Ok(()) } - fn read_uint(&mut self) -> Result { + fn read_usize(&mut self) -> Result { self.read_i64().map(|i| i as uint) } fn read_u64(&mut self) -> Result { @@ -456,7 +456,7 @@ impl rustc_serialize::Decoder for Decoder { fn read_u8(&mut self) -> Result { self.read_i64().map(|i| i as u8) } - fn read_int(&mut self) -> Result { + fn read_isize(&mut self) -> Result { self.read_i64().map(|i| i as int) } fn read_i64(&mut self) -> Result { -- cgit v1.2.3