mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
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:
@@ -66,15 +66,12 @@ pub fn derive_default_no_bound(input: proc_macro::TokenStream) -> proc_macro::To
|
|||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
match &*default_variants {
|
match &*default_variants {
|
||||||
[] => {
|
[] => return syn::Error::new(
|
||||||
return syn::Error::new(
|
name.clone().span(),
|
||||||
name.clone().span(),
|
"no default declared, make a variant default by placing `#[default]` above it",
|
||||||
// writing this as a regular string breaks rustfmt for some reason
|
)
|
||||||
r#"no default declared, make a variant default by placing `#[default]` above it"#,
|
.into_compile_error()
|
||||||
)
|
.into(),
|
||||||
.into_compile_error()
|
|
||||||
.into()
|
|
||||||
},
|
|
||||||
// only one variant with the #[default] attribute set
|
// only one variant with the #[default] attribute set
|
||||||
[default_variant] => {
|
[default_variant] => {
|
||||||
let variant_attrs = default_variant
|
let variant_attrs = default_variant
|
||||||
|
|||||||
Reference in New Issue
Block a user