Skip to content

Commit d729c96

Browse files
committed
serialize: silence some warnings
1 parent 11d9175 commit d729c96

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/libserialize/json.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ impl ::Decoder<DecoderError> for Decoder {
20712071
expect!(self.pop(), String)
20722072
}
20732073

2074-
fn read_enum<T, F>(&mut self, name: &str, f: F) -> DecodeResult<T> where
2074+
fn read_enum<T, F>(&mut self, _name: &str, f: F) -> DecodeResult<T> where
20752075
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
20762076
{
20772077
f(self)
@@ -2120,7 +2120,7 @@ impl ::Decoder<DecoderError> for Decoder {
21202120
f(self, idx)
21212121
}
21222122

2123-
fn read_enum_variant_arg<T, F>(&mut self, idx: uint, f: F) -> DecodeResult<T> where
2123+
fn read_enum_variant_arg<T, F>(&mut self, _idx: uint, f: F) -> DecodeResult<T> where
21242124
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
21252125
{
21262126
f(self)
@@ -2134,7 +2134,7 @@ impl ::Decoder<DecoderError> for Decoder {
21342134

21352135

21362136
fn read_enum_struct_variant_field<T, F>(&mut self,
2137-
name: &str,
2137+
_name: &str,
21382138
idx: uint,
21392139
f: F)
21402140
-> DecodeResult<T> where
@@ -2143,7 +2143,7 @@ impl ::Decoder<DecoderError> for Decoder {
21432143
self.read_enum_variant_arg(idx, f)
21442144
}
21452145

2146-
fn read_struct<T, F>(&mut self, name: &str, len: uint, f: F) -> DecodeResult<T> where
2146+
fn read_struct<T, F>(&mut self, _name: &str, _len: uint, f: F) -> DecodeResult<T> where
21472147
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
21482148
{
21492149
let value = try!(f(self));
@@ -2153,7 +2153,7 @@ impl ::Decoder<DecoderError> for Decoder {
21532153

21542154
fn read_struct_field<T, F>(&mut self,
21552155
name: &str,
2156-
idx: uint,
2156+
_idx: uint,
21572157
f: F)
21582158
-> DecodeResult<T> where
21592159
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
@@ -2198,7 +2198,7 @@ impl ::Decoder<DecoderError> for Decoder {
21982198
}
21992199

22002200
fn read_tuple_struct<T, F>(&mut self,
2201-
name: &str,
2201+
_name: &str,
22022202
len: uint,
22032203
f: F)
22042204
-> DecodeResult<T> where
@@ -2236,7 +2236,7 @@ impl ::Decoder<DecoderError> for Decoder {
22362236
f(self, len)
22372237
}
22382238

2239-
fn read_seq_elt<T, F>(&mut self, idx: uint, f: F) -> DecodeResult<T> where
2239+
fn read_seq_elt<T, F>(&mut self, _idx: uint, f: F) -> DecodeResult<T> where
22402240
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
22412241
{
22422242
f(self)
@@ -2254,13 +2254,13 @@ impl ::Decoder<DecoderError> for Decoder {
22542254
f(self, len)
22552255
}
22562256

2257-
fn read_map_elt_key<T, F>(&mut self, idx: uint, f: F) -> DecodeResult<T> where
2257+
fn read_map_elt_key<T, F>(&mut self, _idx: uint, f: F) -> DecodeResult<T> where
22582258
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
22592259
{
22602260
f(self)
22612261
}
22622262

2263-
fn read_map_elt_val<T, F>(&mut self, idx: uint, f: F) -> DecodeResult<T> where
2263+
fn read_map_elt_val<T, F>(&mut self, _idx: uint, f: F) -> DecodeResult<T> where
22642264
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
22652265
{
22662266
f(self)

0 commit comments

Comments
 (0)