From 73d8609565b808ac73df5ac34e6d4f7f23c25ad6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 11 Oct 2022 15:45:50 +0200 Subject: Refactor to use a bunch of `into` --- tests/gfm_footnote.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tests/gfm_footnote.rs') 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.