Fix Clippy needless-raw-string-hashes warning ()

This commit is contained in:
Chris Wong 2023-09-27 13:33:22 +10:00 committed by GitHub
parent 811c7402ff
commit bfc3a6d0d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
maud/tests
maud_macros/src

View file

@ -103,7 +103,7 @@ fn toggle_empty_attributes_braces() {
rocks: bool,
}
let result = html! { input checked[Maud { rocks: true }.rocks]; };
assert_eq!(result.into_string(), r#"<input checked>"#);
assert_eq!(result.into_string(), "<input checked>");
}
#[test]
@ -121,7 +121,7 @@ fn optional_attribute_some() {
#[test]
fn optional_attribute_none() {
let result = html! { input value=[None as Option<&str>]; };
assert_eq!(result.into_string(), r#"<input>"#);
assert_eq!(result.into_string(), "<input>");
}
#[test]

View file

@ -148,7 +148,7 @@ impl Parser {
if let Some(attr_name) = &self.current_attr {
emit_error!(
ident,
r#"attribute value must be a string"#;
"attribute value must be a string";
help = "to declare an empty attribute, omit the equals sign: `{}`",
attr_name;
help = "to toggle the attribute, use square brackets: `{}[some_boolean_flag]`",