Commit 6f2567d
authored
Update manual_is_variant_and documentation to include equality comparison (rust-lang#15239)
Update `manual_is_variant_and` documentation to include equality
comparison patterns
This commit updates the documentation for the `manual_is_variant_and`
lint to include all linted cases. Previously, the documentation only
mentioned the `.map(f).unwrap_or_default()` pattern, but the lint also
catches equality comparison patterns like `option.map(f) == Some(true)`
and `result.map(f) == Ok(true)`.
changelog: [`manual_is_variant_and`]: Update documentation to include
equality comparison patterns
fixes rust-lang/rust-clippy#152171 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3859 | 3859 | | |
3860 | 3860 | | |
3861 | 3861 | | |
| 3862 | + | |
3862 | 3863 | | |
3863 | 3864 | | |
3864 | 3865 | | |
| |||
3869 | 3870 | | |
3870 | 3871 | | |
3871 | 3872 | | |
| 3873 | + | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
3872 | 3878 | | |
3873 | 3879 | | |
3874 | 3880 | | |
3875 | 3881 | | |
3876 | 3882 | | |
3877 | 3883 | | |
3878 | 3884 | | |
| 3885 | + | |
| 3886 | + | |
| 3887 | + | |
| 3888 | + | |
| 3889 | + | |
3879 | 3890 | | |
3880 | 3891 | | |
3881 | 3892 | | |
3882 | 3893 | | |
3883 | | - | |
| 3894 | + | |
3884 | 3895 | | |
3885 | 3896 | | |
3886 | 3897 | | |
| |||
0 commit comments