remove unnecessary hash string (#1722)

This PR removes some unnecessary `r#`...`#` around a string and the
corresponding comment that it was done because rustfmt wasn't working
for "some reason". It seems to work fine now and clippy prefers it this
way.

---------

Co-authored-by: Joshy Orndorff <git-user-email.h0ly5@simplelogin.com>
This commit is contained in:
Joshy Orndorff
2023-09-27 11:48:24 -04:00
committed by GitHub
parent 69ed3087e1
commit ec9274eea6
@@ -66,15 +66,12 @@ pub fn derive_default_no_bound(input: proc_macro::TokenStream) -> proc_macro::To
.collect::<Vec<_>>();
match &*default_variants {
[] => {
return syn::Error::new(
[] => return syn::Error::new(
name.clone().span(),
// writing this as a regular string breaks rustfmt for some reason
r#"no default declared, make a variant default by placing `#[default]` above it"#,
"no default declared, make a variant default by placing `#[default]` above it",
)
.into_compile_error()
.into()
},
.into(),
// only one variant with the #[default] attribute set
[default_variant] => {
let variant_attrs = default_variant