From bccdce1a3ac0dc0646f4ffa9bc0a09ea19ae58a5 Mon Sep 17 00:00:00 2001 From: Sam Scott Date: Sun, 12 Mar 2017 14:44:44 -0400 Subject: Run rustfmt on code. --- src/ser/value.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/ser/value.rs') diff --git a/src/ser/value.rs b/src/ser/value.rs index 5ed80b9..f2fc617 100644 --- a/src/ser/value.rs +++ b/src/ser/value.rs @@ -68,9 +68,9 @@ impl<'key, 'target, Target> SerializeStruct for ValueSink<'key, 'target, Target> type Error = Error; fn serialize_field(&mut self, - key: &'static str, - value: &T) - -> Result<(), Error> { + key: &'static str, + value: &T) + -> Result<(), Error> { let newk = format!("{}[{}]", self.key, key); let value_sink = ValueSink::new(self.urlencoder, &newk); value.serialize(super::part::PartSerializer::new(value_sink)) @@ -88,8 +88,8 @@ impl<'key, 'target, Target> SerializeSeq for ValueSink<'key, 'target, Target> type Error = Error; fn serialize_element(&mut self, - value: &T) - -> Result<(), Error> { + value: &T) + -> Result<(), Error> { let newk = format!("{}[{}]", self.key, self.idx); self.idx += 1; let value_sink = ValueSink::new(self.urlencoder, &newk); @@ -100,4 +100,3 @@ impl<'key, 'target, Target> SerializeSeq for ValueSink<'key, 'target, Target> Ok(()) } } - -- cgit v1.2.3