diff --git a/yaserde/tests/errors.rs b/yaserde/tests/errors.rs index e4253e3..d911f2c 100644 --- a/yaserde/tests/errors.rs +++ b/yaserde/tests/errors.rs @@ -20,7 +20,12 @@ fn de_no_content() { let content = ""; let loaded: Result = from_str(content); - assert_eq!(loaded, Err(String::from("Unexpected end of stream: no root element found"))); + assert_eq!( + loaded, + Err(String::from( + "Unexpected end of stream: no root element found" + )) + ); } #[test] @@ -34,5 +39,10 @@ fn de_wrong_end_balise() { let content = "Antoine de Saint-ExupéryLittle prince"; let loaded: Result = from_str(content); - assert_eq!(loaded, Err(String::from("Unexpected closing tag: book, expected author"))); + assert_eq!( + loaded, + Err(String::from( + "Unexpected closing tag: book, expected author" + )) + ); } diff --git a/yaserde/tests/serializer.rs b/yaserde/tests/serializer.rs index 89f9cbf..c52e59f 100644 --- a/yaserde/tests/serializer.rs +++ b/yaserde/tests/serializer.rs @@ -99,7 +99,12 @@ fn se_attributes() { } } - assert_eq!(SubStruct::default(), SubStruct{subitem: "".to_string()}); + assert_eq!( + SubStruct::default(), + SubStruct { + subitem: "".to_string() + } + ); let model = XmlStruct { item: "something".to_string(), @@ -138,7 +143,12 @@ fn ser_rename() { } } - assert_eq!(SubStruct::default(), SubStruct{subitem: "".to_string()}); + assert_eq!( + SubStruct::default(), + SubStruct { + subitem: "".to_string() + } + ); let model = XmlStruct { item: "something".to_string(), @@ -180,10 +190,13 @@ fn ser_text_content_with_attributes() { } } - assert_eq!(SubStruct::default(), SubStruct{ - subitem: "".to_string(), - text: "".to_string(), - }); + assert_eq!( + SubStruct::default(), + SubStruct { + subitem: "".to_string(), + text: "".to_string(), + } + ); let model = XmlStruct { item: "something".to_string(),