about summary refs log tree commit diff
path: root/clippy_lints/src/declared_lints.rs
diff options
context:
space:
mode:
authory21 <30553356+y21@users.noreply.github.com>2023-12-30 03:15:38 +0100
committery21 <30553356+y21@users.noreply.github.com>2024-01-03 19:40:47 +0100
commit5960107415caf34a84fc8bb2f2fd303b7e358041 (patch)
treef84b15dbc2271c8f2fe7ec56d2ac6c110644c070 /clippy_lints/src/declared_lints.rs
parent0153ca95ae588f0423f919e199370b6ff02b02c1 (diff)
downloadrust-5960107415caf34a84fc8bb2f2fd303b7e358041.tar.gz
rust-5960107415caf34a84fc8bb2f2fd303b7e358041.zip
new lint: `option_as_ref_cloned`
Diffstat (limited to 'clippy_lints/src/declared_lints.rs')
-rw-r--r--clippy_lints/src/declared_lints.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/declared_lints.rs b/clippy_lints/src/declared_lints.rs
index f6c9ffea9fc..20230106d53 100644
--- a/clippy_lints/src/declared_lints.rs
+++ b/clippy_lints/src/declared_lints.rs
@@ -410,6 +410,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
     crate::methods::NO_EFFECT_REPLACE_INFO,
     crate::methods::OBFUSCATED_IF_ELSE_INFO,
     crate::methods::OK_EXPECT_INFO,
+    crate::methods::OPTION_AS_REF_CLONED_INFO,
     crate::methods::OPTION_AS_REF_DEREF_INFO,
     crate::methods::OPTION_FILTER_MAP_INFO,
     crate::methods::OPTION_MAP_OR_ERR_OK_INFO,