Disable result_unwrap_used / option_unwrap_used in tests #1015
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-tests
Lint: Lints test code
T-middle
Type: Probably requires verifiying types
If clippy is used as a dependency, the lints can pick up test code. Since that code does not need to have full-blown error handling, unwrap is ok.
To solve this, we can use
get_parent
to walk up the parent chain and check all items for#[test]
annotations.The text was updated successfully, but these errors were encountered: