Fix rustc updates.
This commit is contained in:
parent
bf4d6f637b
commit
1355a93a23
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue