Skip to content

Commit

Permalink
Fix lint sol-macro-expander
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Oct 4, 2024
1 parent 0cd3a72 commit f6144e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/sol-macro-expander/src/expand/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ enum ToExpand<'a> {
Events(&'a [&'a ItemEvent]),
}

impl<'a> ToExpand<'a> {
impl ToExpand<'_> {
fn to_data(&self, expander: &CallLikeExpander<'_>) -> ExpandData {
let &CallLikeExpander { cx, ref contract_name, .. } = expander;
match self {
Expand Down Expand Up @@ -660,7 +660,7 @@ impl<'a> ToExpand<'a> {
}
}

impl<'a> CallLikeExpander<'a> {
impl CallLikeExpander<'_> {
fn expand(&self, to_expand: ToExpand<'_>, attrs: Vec<Attribute>) -> TokenStream {
let data = &to_expand.to_data(self);

Expand Down
2 changes: 1 addition & 1 deletion crates/sol-macro-expander/src/expand/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl<'ast> ExpCtxt<'ast> {
}

// resolve
impl<'ast> ExpCtxt<'ast> {
impl ExpCtxt<'_> {
fn parse_file_attributes(&mut self) -> Result<()> {
let (attrs, others) = self.ast.split_attrs()?;
self.attrs = attrs;
Expand Down

0 comments on commit f6144e4

Please sign in to comment.