Skip to content

Commit cb85513

Browse files
committed
Formatting
1 parent cce045c commit cb85513

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/ser/mod.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,7 @@ impl<'a, 'b: 'a> ser::Serializer for &'a mut Serializer<'b> {
336336
self.serialize_str(variant)
337337
}
338338

339-
fn serialize_newtype_struct<T: ?Sized>(
340-
self,
341-
_name: &'static str,
342-
value: &T,
343-
) -> Result<Self::Ok>
339+
fn serialize_newtype_struct<T: ?Sized>(self, _name: &'static str, value: &T) -> Result<Self::Ok>
344340
where
345341
T: ser::Serialize,
346342
{
@@ -794,6 +790,9 @@ mod tests {
794790
}
795791
let a = A::A { x: 54, y: 720 };
796792

797-
assert_eq!(&*crate::to_string::<N, _>(&a).unwrap(), r#"{"A":{"x":54,"y":720}}"#);
793+
assert_eq!(
794+
&*crate::to_string::<N, _>(&a).unwrap(),
795+
r#"{"A":{"x":54,"y":720}}"#
796+
);
798797
}
799798
}

0 commit comments

Comments
 (0)