diff --git a/opml_api/source/lib.rs b/opml_api/source/lib.rs index 456200b..2813659 100644 --- a/opml_api/source/lib.rs +++ b/opml_api/source/lib.rs @@ -29,8 +29,8 @@ //! To create an OPML document from scratch, use [`OPML::default()`] or the good //! old `OPML { /* ... */ }` syntax. -use serde::{Deserialize, Serialize}; use hard_xml::{XmlRead, XmlWrite}; +use serde::{Deserialize, Serialize}; use thiserror::Error; /// All possible errors. diff --git a/opml_api/tests/valid.rs b/opml_api/tests/valid.rs index fc19b0f..7ec2421 100644 --- a/opml_api/tests/valid.rs +++ b/opml_api/tests/valid.rs @@ -23,15 +23,12 @@ fn test_minimum_valid_opml() { #[test] fn test_valid_empty_docs() { assert_eq!( - OPML::from_str( - &read("tests/samples/empty_docs.opml").unwrap() - ) - .unwrap(), + OPML::from_str(&read("tests/samples/empty_docs.opml").unwrap()).unwrap(), OPML { version: "2.0".to_string(), head: Some(Head { docs: Some("".to_string()), - ..Head::default() + ..Head::default() }), body: Body { outlines: vec![Outline {