From 2e05a4033c007fd295ba544ead7371bca52382cd Mon Sep 17 00:00:00 2001 From: Rodney Lab Date: Wed, 27 Nov 2024 17:14:30 +0000 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=9B=81=20linting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/html_process/tests.rs | 4 ++-- src/lib.rs | 14 +++++++------- src/markdown/tests.rs | 16 +++++++--------- 4 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 0592392..d2a6e69 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target .DS_Store +rusty-tags.vi diff --git a/src/html_process/tests.rs b/src/html_process/tests.rs index c2d4cd9..1bfa815 100644 --- a/src/html_process/tests.rs +++ b/src/html_process/tests.rs @@ -90,12 +90,12 @@ fn search_html_matches_on_multiple_terms() { #[test] fn search_html_highlight_does_nothing_when_there_are_no_matches() { let result = process_html( - r#"

Heading

Nobody likes maple in their apple flavoured Snapple. APPLE

"#, + "

Heading

Nobody likes maple in their apple flavoured Snapple. APPLE

", None, Some("nonsense"), ) .to_string(); let expected = - r#"

Heading

Nobody likes maple in their apple flavoured Snapple. APPLE

"#; + "

Heading

Nobody likes maple in their apple flavoured Snapple. APPLE

"; assert_eq!(result, expected); } diff --git a/src/lib.rs b/src/lib.rs index fabd826..48347ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -175,11 +175,11 @@ hello you } ); - let markdown = r#" + let markdown = " ## Subheading Paragraph text. -"#; +"; let result = markdown_to_processed_html( markdown, @@ -204,11 +204,11 @@ Paragraph text. }, ); - let markdown = r#" + let markdown = " ### Subheading Link: [Example site](https://example.com). -"#; +"; let result = markdown_to_processed_html( markdown, @@ -219,9 +219,9 @@ Link: [Example site](https://example.com). }, ); let html = Some(String::from( - r##"

Subheading

+ r#"

Subheading

Link: Example site.

-"##, +"#, )); assert_eq!( result, @@ -236,7 +236,7 @@ Link: [Example site](https://example.com). #[test] fn test_mjml_to_html() { - let mjml = r#""#; + let mjml = r""; let result = mjml_to_html(mjml); let expected = r#"