Closed
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)]
?