From 5c061374992ddc4b3366ce38a70ba834fa87c1ce Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Thu, 5 Mar 2015 19:16:59 -0800 Subject: [PATCH] Silence a warning --- serde2/benches/bench_log.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")), }