提交 d729c966 编写于 作者: E Erick Tryzelaar

serialize: silence some warnings

上级 11d9175a
......@@ -2071,7 +2071,7 @@ fn read_str(&mut self) -> DecodeResult<string::String> {
expect!(self.pop(), String)
}
fn read_enum<T, F>(&mut self, name: &str, f: F) -> DecodeResult<T> where
fn read_enum<T, F>(&mut self, _name: &str, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
{
f(self)
......@@ -2120,7 +2120,7 @@ fn read_enum_variant<T, F>(&mut self, names: &[&str],
f(self, idx)
}
fn read_enum_variant_arg<T, F>(&mut self, idx: uint, f: F) -> DecodeResult<T> where
fn read_enum_variant_arg<T, F>(&mut self, _idx: uint, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
{
f(self)
......@@ -2134,7 +2134,7 @@ fn read_enum_struct_variant<T, F>(&mut self, names: &[&str], f: F) -> DecodeResu
fn read_enum_struct_variant_field<T, F>(&mut self,
name: &str,
_name: &str,
idx: uint,
f: F)
-> DecodeResult<T> where
......@@ -2143,7 +2143,7 @@ fn read_enum_struct_variant_field<T, F>(&mut self,
self.read_enum_variant_arg(idx, f)
}
fn read_struct<T, F>(&mut self, name: &str, len: uint, f: F) -> DecodeResult<T> where
fn read_struct<T, F>(&mut self, _name: &str, _len: uint, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
{
let value = try!(f(self));
......@@ -2153,7 +2153,7 @@ fn read_struct<T, F>(&mut self, name: &str, len: uint, f: F) -> DecodeResult<T>
fn read_struct_field<T, F>(&mut self,
name: &str,
idx: uint,
_idx: uint,
f: F)
-> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
......@@ -2198,7 +2198,7 @@ fn read_tuple_arg<T, F>(&mut self, idx: uint, f: F) -> DecodeResult<T> where
}
fn read_tuple_struct<T, F>(&mut self,
name: &str,
_name: &str,
len: uint,
f: F)
-> DecodeResult<T> where
......@@ -2236,7 +2236,7 @@ fn read_seq<T, F>(&mut self, f: F) -> DecodeResult<T> where
f(self, len)
}
fn read_seq_elt<T, F>(&mut self, idx: uint, f: F) -> DecodeResult<T> where
fn read_seq_elt<T, F>(&mut self, _idx: uint, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
{
f(self)
......@@ -2254,13 +2254,13 @@ fn read_map<T, F>(&mut self, f: F) -> DecodeResult<T> where
f(self, len)
}
fn read_map_elt_key<T, F>(&mut self, idx: uint, f: F) -> DecodeResult<T> where
fn read_map_elt_key<T, F>(&mut self, _idx: uint, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
{
f(self)
}
fn read_map_elt_val<T, F>(&mut self, idx: uint, f: F) -> DecodeResult<T> where
fn read_map_elt_val<T, F>(&mut self, _idx: uint, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
{
f(self)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册