Skip to content

Commit b35d313

Browse files
committed
style(sql): satisfy clippy
1 parent 3fc12f6 commit b35d313

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sql/escape.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ fn escape(src: &str, mut dst: impl fmt::Write, ch: char) -> fmt::Result {
3535
#[test]
3636
fn it_escapes_string() {
3737
let mut actual = String::new();
38-
string(r#"f\o'o '' b\'ar'"#, &mut actual).unwrap();
39-
assert_eq!(actual, r#"'f\\o\'o \'\' b\\\'ar\''"#);
38+
string(r"f\o'o '' b\'ar'", &mut actual).unwrap();
39+
assert_eq!(actual, r"'f\\o\'o \'\' b\\\'ar\''");
4040
}
4141

4242
#[test]
4343
fn it_escapes_identifier() {
4444
let mut actual = String::new();
45-
identifier(r#"f\o`o `` b\`ar`"#, &mut actual).unwrap();
46-
assert_eq!(actual, r#"`f\\o\`o \`\` b\\\`ar\``"#);
45+
identifier(r"f\o`o `` b\`ar`", &mut actual).unwrap();
46+
assert_eq!(actual, r"`f\\o\`o \`\` b\\\`ar\``");
4747
}

0 commit comments

Comments
 (0)