Skip to content

Commit eac624b

Browse files
committed
Work around needless_raw_string_hashes pedantic clippy lint in test
warning: unnecessary hashes around raw string literal --> tests/test_formatdoc.rs:65:29 | 65 | let indoc = formatdoc! {r#" | _____________________________^ 66 | | {:?} 67 | | 68 | | \\{} 69 | | {}"#, | |____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes = note: `-W clippy::needless-raw-string-hashes` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::needless_raw_string_hashes)]` help: remove all the hashes around the string literal | 65 ~ let indoc = formatdoc! {r" 66 | {:?} 67 | 68 | \\{} 69 ~ {}", |
1 parent 64949e1 commit eac624b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_formatdoc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ fn one_line() {
6363
#[test]
6464
fn raw_string() {
6565
let indoc = formatdoc! {r#"
66-
{:?}
66+
{:?}"
6767
6868
\\{}
6969
{}"#,
7070
"a", 'b', 'c'
7171
};
72-
let expected = "\"a\"\n\n \\\\b\nc";
72+
let expected = "\"a\"\"\n\n \\\\b\nc";
7373
assert_eq!(indoc, expected);
7474
}
7575

0 commit comments

Comments
 (0)