Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Cargo fmt again
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 25, 2016
1 parent afd41d8 commit f144016
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions yaml/src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ impl ser::Serializer for Serializer {
})
}

fn serialize_seq_elt<T>(&mut self, state: &mut yaml::Array, elem: T) -> Result<()>
fn serialize_seq_elt<T>(
&mut self,
state: &mut yaml::Array,
elem: T
) -> Result<()>
where T: ser::Serialize,
{
state.push(try!(to_yaml(elem)));
Expand All @@ -201,7 +205,11 @@ impl ser::Serializer for Serializer {
self.serialize_seq(Some(len))
}

fn serialize_tuple_elt<T>(&mut self, state: &mut yaml::Array, elem: T) -> Result<()>
fn serialize_tuple_elt<T>(
&mut self,
state: &mut yaml::Array,
elem: T
) -> Result<()>
where T: ser::Serialize,
{
self.serialize_seq_elt(state, elem)
Expand Down

0 comments on commit f144016

Please sign in to comment.