-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
unwrap_used lint fires for #[test]ing code #5805
Comments
We can only approximate this. We already doing this in the The reason, we cannot check this is because when Clippy runs its lints the |
We could make it configurable, so that it can be disabled in tests completely (with the heuristic described above) |
I'd like to work on this but my idea is that configure the method on top of |
I think this can be closed since there now is #8802 |
Confirming Firionus's thoughts |
It would be nice if there was a lint that fired on
unwrap
s inside regular code, but not in#[test]
(or#[cfg(test)]
?) code, potentially just the existingunwrap_used
lint.unwrap_used
or should it likely be a separate lint?#[test]
/#[cfg(test)]
?The text was updated successfully, but these errors were encountered: