-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
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 existing unwrap_used
lint.
- Do you think this is desireable as the default behaviour of
unwrap_used
or should it likely be a separate lint? - Would this be hard to implement (i.e. how hard is it for clippy to tell whether some code is under
#[test]
/#[cfg(test)]
?
Firionus
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy