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/part.rs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/ser/part.rs') diff --git a/src/ser/part.rs b/src/ser/part.rs index 4cf90b3..949af61 100644 --- a/src/ser/part.rs +++ b/src/ser/part.rs @@ -1,10 +1,10 @@ use dtoa; use itoa; use ser::Error; -use serde::ser; use serde; -use std::str; +use serde::ser; use std::marker::PhantomData; +use std::str; pub struct PartSerializer> { sink: S, @@ -13,15 +13,19 @@ pub struct PartSerializer> { impl> PartSerializer { pub fn new(sink: S) -> Self { - PartSerializer { sink: sink, marker: PhantomData } + PartSerializer { + sink: sink, + marker: PhantomData, + } } } -pub trait Sink: Sized + ser::SerializeStruct + ser::SerializeSeq +pub trait Sink: Sized + ser::SerializeStruct + + ser::SerializeSeq where E: serde::ser::Error { - // type Ok; - // type Error; +// type Ok; +// type Error; fn serialize_static_str(self, value: &'static str) -> Result; -- cgit v1.2.3