This commit is contained in:
Oliver Schneider 2016-07-12 15:50:41 +02:00
parent a6f8bd5aac
commit ee4e7413b0
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46

View File

@ -304,7 +304,7 @@ impl<A> Serialize for ops::Range<A>
{
#[inline]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error>
where S: Serialize,
where S: Serializer,
{
let mut seq_serializer = try!(serializer.serialize_seq(Some(self.len())));
for e in self.iter() {