Skip to content
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

Lift the 'static requirement for return types #85

Open
asomers opened this issue Nov 30, 2019 · 0 comments
Open

Lift the 'static requirement for return types #85

asomers opened this issue Nov 30, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@asomers
Copy link
Owner

asomers commented Nov 30, 2019

Mockall currently requires that the closures passed to methods like returning are 'static. That's overly restrictive. The correct restriction should be that their lifetime is at least as great as the Expectation's. Likewise for the closures passed to methods like withf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant