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

Don't mutate fn values for functions entirely composed of skipped statements #431

Open
sourcefrog opened this issue Nov 4, 2024 · 0 comments

Comments

@sourcefrog
Copy link
Owner

cargo-mutate reports that a testing utility function I have doesn't affect anything when mutated from a series of assert! macros into (). Maybe it would be possible to ignore this mutation if all of the statements are assert!-family macros (though itertools::assert_equal is in the same boat, just not an official macro).

Originally posted by @mathstuf in #301 (comment)

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

No branches or pull requests

1 participant