Skip to content

Commit

Permalink
serialize: silence some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt committed Dec 18, 2014
1 parent 11d9175 commit d729c96
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/libserialize/json.rs
Expand Up @@ -2071,7 +2071,7 @@ impl ::Decoder<DecoderError> for Decoder {
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)
Expand Down Expand Up @@ -2120,7 +2120,7 @@ impl ::Decoder<DecoderError> for Decoder {
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)
Expand All @@ -2134,7 +2134,7 @@ impl ::Decoder<DecoderError> for Decoder {


fn read_enum_struct_variant_field<T, F>(&mut self,
name: &str,
_name: &str,
idx: uint,
f: F)
-> DecodeResult<T> where
Expand All @@ -2143,7 +2143,7 @@ impl ::Decoder<DecoderError> for Decoder {
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));
Expand All @@ -2153,7 +2153,7 @@ impl ::Decoder<DecoderError> for Decoder {

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>,
Expand Down Expand Up @@ -2198,7 +2198,7 @@ impl ::Decoder<DecoderError> for Decoder {
}

fn read_tuple_struct<T, F>(&mut self,
name: &str,
_name: &str,
len: uint,
f: F)
-> DecodeResult<T> where
Expand Down Expand Up @@ -2236,7 +2236,7 @@ impl ::Decoder<DecoderError> for Decoder {
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)
Expand All @@ -2254,13 +2254,13 @@ impl ::Decoder<DecoderError> for Decoder {
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)
Expand Down

0 comments on commit d729c96

Please sign in to comment.