Skip to content

Commit

Permalink
Fix Clippy needless-raw-string-hashes warning (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-fairy committed Sep 27, 2023
1 parent 811c740 commit bfc3a6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions maud/tests/basic_syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion maud_macros/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]`",
Expand Down

0 comments on commit bfc3a6d

Please sign in to comment.