about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-15 14:50:29 +0000
committerbors <bors@rust-lang.org>2024-05-15 14:50:29 +0000
commita7f326574cf9335899d02284c76bc66ade75c3c4 (patch)
treeab32b24eec07ebd6784647ffd7b626ee72c7427c
parentc58b6e66fd8ac01744c0aa975dccd19705c7a68a (diff)
parent076f2e5dea94b02fbb4baf224a5cec2a2ef58427 (diff)
downloadrust-a7f326574cf9335899d02284c76bc66ade75c3c4.tar.gz
rust-a7f326574cf9335899d02284c76bc66ade75c3c4.zip
Auto merge of #12779 - de-vri-es:move-assigng-clones-to-pedantic, r=y21
`assigning_clones`: move to `pedantic` so it is allow by default

In a nutshell, the `assigning_clones` lint suggests to make your code less readable for a small performance gain. See #12778 for more motivation.

fixes #12778

changelog: [`assigning_clones`]: move to the `pedantic` group
-rw-r--r--clippy_lints/src/assigning_clones.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/assigning_clones.rs b/clippy_lints/src/assigning_clones.rs
index 9202c46e8b6..e94a6f3e3fc 100644
--- a/clippy_lints/src/assigning_clones.rs
+++ b/clippy_lints/src/assigning_clones.rs
@@ -48,7 +48,7 @@ declare_clippy_lint! {
     /// ```
     #[clippy::version = "1.78.0"]
     pub ASSIGNING_CLONES,
-    perf,
+    pedantic,
     "assigning the result of cloning may be inefficient"
 }