Skip to content

Commit

Permalink
chore(sol-macro): add suggestion to remove name (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Jun 4, 2024
1 parent ec302cb commit 4633b9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/json-abi/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ abi_items! {
}
}

#[inline(always)]
#[inline]
fn validate_identifier<'de, D: Deserializer<'de>>(deserializer: D) -> Result<String, D::Error> {
let s = String::deserialize(deserializer)?;
validate_identifier!(&s);
Expand Down
2 changes: 1 addition & 1 deletion crates/sol-macro-input/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl SolInput {
}
} else {
if let Some(name) = name {
let msg = "names are not allowed outside of JSON ABI";
let msg = "names are not allowed outside of JSON ABI, remove this name";
return Err(Error::new(name.span(), msg));
}
let kind = syn::parse_str(s).map_err(|e| {
Expand Down

0 comments on commit 4633b9d

Please sign in to comment.