diff --git a/serde2/benches/bench_log.rs b/serde2/benches/bench_log.rs index 9722077a..7f387764 100644 --- a/serde2/benches/bench_log.rs +++ b/serde2/benches/bench_log.rs @@ -47,7 +47,7 @@ impl rustc_serialize::Encodable for HttpProtocol { impl rustc_serialize::Decodable for HttpProtocol { fn decode(d: &mut D) -> Result { - match FromPrimitive::from_uint(try!(d.read_usize())) { + match FromPrimitive::from_usize(try!(d.read_usize())) { Some(value) => Ok(value), None => Err(d.error("cannot convert from usize")), } @@ -95,7 +95,7 @@ impl rustc_serialize::Encodable for HttpMethod { impl rustc_serialize::Decodable for HttpMethod { fn decode(d: &mut D) -> Result { - match FromPrimitive::from_uint(try!(d.read_usize())) { + match FromPrimitive::from_usize(try!(d.read_usize())) { Some(value) => Ok(value), None => Err(d.error("cannot convert from usize")), }