diff options
author | Valerii Hiora <valerii.hiora@gmail.com> | 2015-01-09 17:24:42 +0200 |
---|---|---|
committer | Valerii Hiora <valerii.hiora@gmail.com> | 2015-01-09 17:24:42 +0200 |
commit | 7a198086706ccd00c032eff07b9ec9b634c323ce (patch) | |
tree | c4cd3577c988510aa2c8a9c800c48047014d1799 | |
parent | 1dfb94afba78d8f796e59756d4c5b45a4f5ce5df (diff) | |
download | milf-rs-7a198086706ccd00c032eff07b9ec9b634c323ce.tar.gz milf-rs-7a198086706ccd00c032eff07b9ec9b634c323ce.zip |
Updated serialization traits
-rw-r--r-- | src/serialization.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<uint, DecodeError> { + fn read_usize(&mut self) -> Result<uint, DecodeError> { self.read_i64().map(|i| i as uint) } fn read_u64(&mut self) -> Result<u64, DecodeError> { @@ -456,7 +456,7 @@ impl rustc_serialize::Decoder for Decoder { fn read_u8(&mut self) -> Result<u8, DecodeError> { self.read_i64().map(|i| i as u8) } - fn read_int(&mut self) -> Result<int, DecodeError> { + fn read_isize(&mut self) -> Result<int, DecodeError> { self.read_i64().map(|i| i as int) } fn read_i64(&mut self) -> Result<i64, DecodeError> { |