We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 928a158 commit 3c86cadCopy full SHA for 3c86cad
clippy_lints/src/swap.rs
@@ -16,6 +16,8 @@ declare_clippy_lint! {
16
/// ### What it does
17
/// Checks for manual swapping.
18
///
19
+ /// Note that the lint will not be emitted in const blocks, as the suggestion would not be applicable.
20
+ ///
21
/// ### Why is this bad?
22
/// The `std::mem::swap` function exposes the intent better
23
/// without deinitializing or copying either variable.
0 commit comments