Skip to content

Commit f9d1d85

Browse files
committed
cargo fmt
1 parent 06a65ff commit f9d1d85

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/html/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,7 @@ fn test_document_join_bare_html() {
575575
fn test_json_script() {
576576
use crate::paragraph::ParagraphHasher;
577577

578-
let doc = Document::new(
579-
Path::new("/"),
580-
Path::new("/html5gum/struct.Tokenizer.html"),
581-
);
578+
let doc = Document::new(Path::new("/"), Path::new("/html5gum/struct.Tokenizer.html"));
582579

583580
let html = r#"<script type="text/json" id="notable-traits-data">{"InfallibleTokenizer<R, E>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.InfallibleTokenizer.html\" title=\"struct html5gum::InfallibleTokenizer\">InfallibleTokenizer</a>&lt;R, E&gt;</code></h3><pre><code><div class=\"where\">impl&lt;R: <a class=\"trait\" href=\"trait.Reader.html\" title=\"trait html5gum::Reader\">Reader</a>&lt;Error = <a class=\"enum\" href=\"https://doc.rust-lang.org/1.82.0/core/convert/enum.Infallible.html\" title=\"enum core::convert::Infallible\">Infallible</a>&gt;, E: <a class=\"trait\" href=\"emitters/trait.Emitter.html\" title=\"trait html5gum::emitters::Emitter\">Emitter</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.82.0/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"struct.InfallibleTokenizer.html\" title=\"struct html5gum::InfallibleTokenizer\">InfallibleTokenizer</a>&lt;R, E&gt;</div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.82.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = E::<a class=\"associatedtype\" href=\"emitters/trait.Emitter.html#associatedtype.Token\" title=\"type html5gum::emitters::Emitter::Token\">Token</a>;</div>"}</script>"#;
584581

@@ -588,8 +585,5 @@ fn test_json_script() {
588585
.links_from_read::<_, ParagraphHasher>(&mut doc_buf, html.as_bytes(), false)
589586
.unwrap();
590587

591-
assert_eq!(
592-
links.collect::<Vec<_>>(),
593-
&[]
594-
);
588+
assert_eq!(links.collect::<Vec<_>>(), &[]);
595589
}

0 commit comments

Comments
 (0)