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

Fix using Mockall when a function named Ok is in scope #389

Merged
merged 1 commit into from Jun 28, 2022
Merged

Conversation

asomers
Copy link
Owner

@asomers asomers commented Jun 28, 2022

The anyhow create defines a function by this name, and the proc-macro
generated code was picking it up instead of the standard Result::Ok .

Fixes #388

The `anyhow` create defines a function by this name, and the proc-macro
generated code was picking it up instead of the standard Result::Ok .

Fixes #388
@asomers
Copy link
Owner Author

asomers commented Jun 28, 2022

@mkosiba can you test this PR with your project?

@mkosiba
Copy link

mkosiba commented Jun 28, 2022

It works! Thank you for the very quick turnaround!

@asomers asomers merged commit 21b2856 into master Jun 28, 2022
@asomers asomers deleted the anyhow branch June 28, 2022 17:08
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.

use-ing anyhow::Ok interferes with generated code
2 participants