Fix Clippy needless-raw-string-hashes warning (#390)
This commit is contained in:
parent
811c7402ff
commit
bfc3a6d0d5
2 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
|
@ -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]`",
|
||||
|
|
Loading…
Add table
Reference in a new issue