diff options
| author | bors <bors@rust-lang.org> | 2023-12-12 14:02:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-12 14:02:57 +0000 |
| commit | 52deee25923f0e45ee74b36ca83ff34ccdd14f3d (patch) | |
| tree | 8ceb3a608162fb211af3c1673b29089f19950db1 /clippy_lints/src/declared_lints.rs | |
| parent | 2a1645d009218e85bf9dec578b474eb2acd897ed (diff) | |
| parent | ded94ecf65e334a9c38a8938e817f2bb83f73d45 (diff) | |
| download | rust-52deee25923f0e45ee74b36ca83ff34ccdd14f3d.tar.gz rust-52deee25923f0e45ee74b36ca83ff34ccdd14f3d.zip | |
Auto merge of #11902 - GuillaumeGomez:write-and-append, r=llogiq
Add `ineffective_open_options` lint Fixes https://github.com/rust-lang/rust-clippy/issues/9628. For `OpenOptions`, in case you call both `write(true)` and `append(true)` on `OpenOptions`, then `write(true)` is actually useless since `append(true)` does it. r? `@flip1995` changelog: Add `ineffective_open_options` lint
Diffstat (limited to 'clippy_lints/src/declared_lints.rs')
| -rw-r--r-- | clippy_lints/src/declared_lints.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/declared_lints.rs b/clippy_lints/src/declared_lints.rs index a9ae22e8d43..d3105ed9d18 100644 --- a/clippy_lints/src/declared_lints.rs +++ b/clippy_lints/src/declared_lints.rs @@ -215,6 +215,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[ crate::index_refutable_slice::INDEX_REFUTABLE_SLICE_INFO, crate::indexing_slicing::INDEXING_SLICING_INFO, crate::indexing_slicing::OUT_OF_BOUNDS_INDEXING_INFO, + crate::ineffective_open_options::INEFFECTIVE_OPEN_OPTIONS_INFO, crate::infinite_iter::INFINITE_ITER_INFO, crate::infinite_iter::MAYBE_INFINITE_ITER_INFO, crate::inherent_impl::MULTIPLE_INHERENT_IMPL_INFO, |
