diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-11 15:45:50 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-11 15:45:50 +0200 |
commit | 73d8609565b808ac73df5ac34e6d4f7f23c25ad6 (patch) | |
tree | 8b13c61bcd55380b36338473a74e172b63fb16d7 /tests/gfm_footnote.rs | |
parent | 070b3efeeebf34fbc435ffc7fea2bad95689664a (diff) | |
download | markdown-rs-73d8609565b808ac73df5ac34e6d4f7f23c25ad6.tar.gz markdown-rs-73d8609565b808ac73df5ac34e6d4f7f23c25ad6.tar.bz2 markdown-rs-73d8609565b808ac73df5ac34e6d4f7f23c25ad6.zip |
Refactor to use a bunch of `into`
Diffstat (limited to 'tests/gfm_footnote.rs')
-rw-r--r-- | tests/gfm_footnote.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/gfm_footnote.rs b/tests/gfm_footnote.rs index 29b0092..4b2be52 100644 --- a/tests/gfm_footnote.rs +++ b/tests/gfm_footnote.rs @@ -46,8 +46,8 @@ fn gfm_footnote() -> Result<(), String> { ..ParseOptions::default() }, compile: CompileOptions { - gfm_footnote_label: Some("Voetnoten".to_string()), - gfm_footnote_back_label: Some("Terug naar de inhoud".to_string()), + gfm_footnote_label: Some("Voetnoten".into()), + gfm_footnote_back_label: Some("Terug naar de inhoud".into()), ..CompileOptions::default() } } @@ -73,7 +73,7 @@ fn gfm_footnote() -> Result<(), String> { ..ParseOptions::default() }, compile: CompileOptions { - gfm_footnote_label_tag_name: Some("h1".to_string()), + gfm_footnote_label_tag_name: Some("h1".into()), ..CompileOptions::default() } } @@ -99,7 +99,7 @@ fn gfm_footnote() -> Result<(), String> { ..ParseOptions::default() }, compile: CompileOptions { - gfm_footnote_label_attributes: Some("class=\"footnote-heading\"".to_string()), + gfm_footnote_label_attributes: Some("class=\"footnote-heading\"".into()), ..CompileOptions::default() } } @@ -125,7 +125,7 @@ fn gfm_footnote() -> Result<(), String> { ..ParseOptions::default() }, compile: CompileOptions { - gfm_footnote_clobber_prefix: Some("".to_string()), + gfm_footnote_clobber_prefix: Some("".into()), ..CompileOptions::default() } } @@ -1632,28 +1632,28 @@ multi-paragraph list items. <a href="#user-content-fnref-longnote" data-footnote Node::FootnoteDefinition(FootnoteDefinition { children: vec![Node::Paragraph(Paragraph { children: vec![Node::Text(Text { - value: "b\nc".to_string(), + value: "b\nc".into(), position: Some(Position::new(1, 7, 6, 2, 6, 10)) })], position: Some(Position::new(1, 7, 6, 2, 6, 10)) })], - identifier: "a".to_string(), - label: Some("a".to_string()), + identifier: "a".into(), + label: Some("a".into()), position: Some(Position::new(1, 1, 0, 3, 1, 11)) }), Node::Paragraph(Paragraph { children: vec![ Node::Text(Text { - value: "d ".to_string(), + value: "d ".into(), position: Some(Position::new(4, 1, 12, 4, 3, 14)) }), Node::FootnoteReference(FootnoteReference { - identifier: "a".to_string(), - label: Some("a".to_string()), + identifier: "a".into(), + label: Some("a".into()), position: Some(Position::new(4, 3, 14, 4, 7, 18)) }), Node::Text(Text { - value: " e.".to_string(), + value: " e.".into(), position: Some(Position::new(4, 7, 18, 4, 10, 21)) }) ], |