mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41: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<_>>();
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user