Skip to content

Commit

Permalink
chore(craft-macros): When self.0 is shadowed, it is convenient to d…
Browse files Browse the repository at this point in the history
…irectly call the `self.deref()` method. (#936)
  • Loading branch information
andeya authored Sep 28, 2024
1 parent 4b72a06 commit 03b9250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/craft-macros/src/craft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ fn rewrite_method(
&self.0
}
}
#[allow(unused_imports)]
use ::std::ops::Deref as _;
#macro_attr
impl #impl_generics handle #impl_generics #where_clause{
#method
Expand Down

0 comments on commit 03b9250

Please sign in to comment.