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

Make concretize work with FnMut arguments #595

Merged
merged 2 commits into from
Jul 21, 2024
Merged

Conversation

asomers
Copy link
Owner

@asomers asomers commented Jul 21, 2024

FnMut arguments need two changes:

  • Callbacks to methods like .returning() need a mutable reference to the
    FnMut argument.
  • The mock method needs a mutable binding for the FnMut argument

Fixes #577

asomers added 2 commits July 21, 2024 14:01
FnMut arguments need two changes:
* Callbacks to methods like .returning() need a mutable reference to the
  FnMut argument.
* The mock method needs a mutable binding for the FnMut argument

Fixes #577
@asomers asomers force-pushed the mutable-fnmut-arguments branch from 3efd6cb to 836d100 Compare July 21, 2024 20:12
@asomers asomers merged commit 5aba4b0 into master Jul 21, 2024
3 checks passed
@asomers asomers deleted the mutable-fnmut-arguments branch July 21, 2024 23:25
asomers added a commit that referenced this pull request Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mocking a function taking an FnMut closure incompatible with concretize
1 participant