diff --git a/cargo-registry-markdown/lib.rs b/cargo-registry-markdown/lib.rs index 688baacc2f6..98c04e69af8 100644 --- a/cargo-registry-markdown/lib.rs +++ b/cargo-registry-markdown/lib.rs @@ -267,7 +267,7 @@ pub fn text_to_html( } } - encode_minimal(text).replace("\n", "
\n") + encode_minimal(text).replace('\n', "
\n") } /// Helper function to build a new `HashSet` from the items slice. diff --git a/src/tests/record.rs b/src/tests/record.rs index 3b4115956d0..5cfc0229f1b 100644 --- a/src/tests/record.rs +++ b/src/tests/record.rs @@ -247,7 +247,7 @@ async fn record_http(req: Request, client: Client) -> Result, client: Client) -> Result,