Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Sep 24, 2024
1 parent f4e249b commit facea83
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions a.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
contract DollarIdentifiers {
struct $dStruct {
uint256 $dField;
}

enum $dEnum {
$dVariant
}

type $dUDVT is uint256;

$dStruct public $dPublicVariable;

function $dFunction($dStruct memory $dStructArg, $dEnum $dEnumArg, $dUDVT $dUDVTArg) external {}
}
2 changes: 1 addition & 1 deletion crates/sol-macro-input/src/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub fn tokens_for_sol(name: &Ident, sol: &str) -> Result<TokenStream> {
);
syn::Error::new(name.span(), msg)
};
let tts = syn::parse_str::<TokenStream>(&sol).map_err(|e| mk_err(&e.to_string()))?;
let tts = syn::parse_str::<TokenStream>(sol).map_err(|e| mk_err(&e.to_string()))?;
Ok(tts
.into_iter()
.map(|mut tt| {
Expand Down

0 comments on commit facea83

Please sign in to comment.