Skip to content

mock! now requires visibility specifiers for inherent methods.#207

Merged
asomers merged 1 commit intomasterfrom
mock_pub_methods2
Sep 7, 2020
Merged

mock! now requires visibility specifiers for inherent methods.#207
asomers merged 1 commit intomasterfrom
mock_pub_methods2

Conversation

@asomers
Copy link
Copy Markdown
Owner

@asomers asomers commented Sep 7, 2020

Previously, it forbade them, and treated the inherent method as having
the same visibility as the struct itself. That was occasionally
problematic, for example when the mock struct was pub but one of its
methods' arguments was not.

Relates to issue #143

Previously, it forbade them, and treated the inherent method as having
the same visibility as the struct itself.  That was occasionally
problematic, for example when the mock struct was pub but one of its
methods' arguments was not.

Relates to issue #143
@asomers asomers merged commit f9efd48 into master Sep 7, 2020
@asomers asomers deleted the mock_pub_methods2 branch September 7, 2020 21:02
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.

1 participant