Fix rustc updates.

This commit is contained in:
Ty Overby 2015-03-19 10:09:27 -07:00
parent bf4d6f637b
commit 1355a93a23
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "bincode"
version = "0.0.10"
version = "0.0.11"
authors = ["Ty Overby <ty@pre-alpha.com>", "Francesco Mazzoli <f@mazzo.li>"]
repository = "https://github.com/TyOverby/bincode"
@ -11,5 +11,5 @@ license = "MIT"
description = "A binary serialization / deserialization strategy and implementation."
[dependencies]
rustc-serialize = "*"
rustc-serialize = "0.3.*"
byteorder = "0.2.9"

View File

@ -79,7 +79,7 @@ fn wrap_io(err: ByteOrderError) -> DecodingError {
impl Error for DecodingError {
fn description(&self) -> &str {
match *self {
DecodingError::IoError(ref err) => err.description(),
DecodingError::IoError(ref err) => Error::description(err),
DecodingError::InvalidEncoding(ref ib) => ib.desc,
DecodingError::SizeLimit => "the size limit for decoding has been reached"
}
@ -385,7 +385,7 @@ fn read_at_least<R: Read>(reader: &mut R, min: usize, buf: &mut [u8]) -> IoResul
unsafe fn slice_vec_capacity<'a, T>(v: &'a mut Vec<T>, start: usize, end: usize) -> &'a mut [T] {
use std::raw::Slice;
use std::ptr::PtrExt;
//use std::ptr::PtrExt;
use std::mem::transmute;
assert!(start <= end);

View File

@ -60,7 +60,7 @@ impl fmt::Display for EncodingError {
impl Error for EncodingError {
fn description(&self) -> &str {
match *self {
EncodingError::IoError(ref err) => err.description(),
EncodingError::IoError(ref err) => Error::description(err),
EncodingError::SizeLimit => "the size limit for decoding has been reached"
}
}