Replies: 3 comments 3 replies
-
So the closure that you're passing to |
Beta Was this translation helpful? Give feedback.
-
There are
For a solution, you can either wait for my patch and remove the |
Beta Was this translation helpful? Give feedback.
-
@grongor try the branch in #606 . You'll still probably have to remove the |
Beta Was this translation helpful? Give feedback.
-
Hello 👋
I have a trait that takes a closure which it later uses in multiple places on multiple threads.
mockall
generates argument types likeFn(Box<dyn Fn(T, bool)>)
so I'm unable to use non-*_st
methods likereturning
.Simplified example:
The error I'm encoutering:
For now I'm ok with
Rc<OnceCell<_>>
and the_*st
methods, but I wonder if I'm doing something wrong or if this is some limitation ofmockall
or theautomock
derive attr.Beta Was this translation helpful? Give feedback.
All reactions