By default, do not lint `.unwrap()` and `.expect(…)` in always const contexts, as a failure would be detected at compile time anyway. New options `allow_expect_in_consts` and `allow_unwrap_in_consts`, defaulting to `true`, can be turned unset to still lint in always const contexts. |
||
|---|---|---|
| .. | ||
| clippy.toml | ||
| unwrap_used.fixed | ||
| unwrap_used.rs | ||
| unwrap_used.stderr | ||
| unwrap_used_const.rs | ||
| unwrap_used_const.stderr | ||