Add compatibility with the #[auto_impl] macro#686
Conversation
4003434 to
120a88c
Compare
asomers
left a comment
There was a problem hiding this comment.
This looks great! Thanks for your contribution.
|
The CI failure should be resolved by a rebase. |
90c069e to
88d59b5
Compare
|
Done, please create a release after so I can pull this change from crates.io. |
Why aren't workflows running? Maybe dismissing my review will jog github's logic.
|
Github's AI says that workflows aren't running because "Most likely conclusion: this is a GitHub-side trigger problem for that PR update". @Kranzes could you please force-push to job the triggers? FTR, I'm annoyed that I have to use Github's CI just to tell me that Github has a bug. |
|
GHA strikes again 😂 |
`#[automock]` was copying the trait-only `#[auto_impl]` attribute onto the
generated mock, where it can't apply ("expected `trait`"). Strip it like
the other trait-only attributes so the two compose on one trait.
88d59b5 to
d3b041d
Compare
asomers
left a comment
There was a problem hiding this comment.
Whatever you just did "fixed" it. Workflows are running again.
|
I simply force pushed as you suggested :D |
Requires asomers/mockall#686, which didn't end up in a release yet. We need to be a tiny bit more explicit with where the lifetime is coming from in DirectoryService::put_multiple_start() as the compiler doesn't seem to be able to infer it anymore, but that's only necessary for the trait definition, not all impls. Change-Id: I3863bf208621c5e65c044c6723705a5081fa7267 Reviewed-on: https://cl.snix.dev/c/snix/+/31414 Tested-by: besadii Autosubmit: Florian Klink <flokli@flokli.de> Reviewed-by: kenji <aks.kenji@protonmail.com>
|
@Kranzes released as 0.15.0 |
asomers/mockall#686, fixing compatibility with the auto_impl macro ended in the latest release, so no more need to pin a git revision here. Change-Id: Ie7b491fb97b102176930d031c6cbc361440a1966 Reviewed-on: https://cl.snix.dev/c/snix/+/31454 Autosubmit: Florian Klink <flokli@flokli.de> Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com> Tested-by: besadii
#[automock]was copying the trait-only#[auto_impl]attribute onto thegenerated mock, where it can't apply ("expected
trait"). Strip it likethe other trait-only attributes so the two compose on one trait.