-
Notifications
You must be signed in to change notification settings - Fork 21
Implement Clone
for possible matchers
#355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What about injecting an This would solve the problem for:
It wouldn't solve the issue for:
which will require implementing Clone for matchers. The first one is fairly simple to implement right now. The second is no more complicated, but I will need to make all matcher function return concrete types as part of #323 fix, so I may save this for later. WDYT? |
I run into temporary lifetime issue by taking the matcher by reference. However, in #356, I just made all |
@bjacotg Implementing |
To simply reuse the same long matcher expression across multiple checks.
The text was updated successfully, but these errors were encountered: