about summary refs log tree commit diff
diff options
context:
space:
mode:
authory21 <30553356+y21@users.noreply.github.com>2023-04-18 00:40:03 +0200
committery21 <30553356+y21@users.noreply.github.com>2023-04-29 18:59:07 +0200
commitf10e39fd2be243b7f0d4f82f56420ba1cbd4a7bb (patch)
tree73f77899948ebbbc328cc3521e35ed90c114c3f4
parentab9b7a5ad23bd2cb2097719ad9439277b8f5d987 (diff)
downloadrust-f10e39fd2be243b7f0d4f82f56420ba1cbd4a7bb.tar.gz
rust-f10e39fd2be243b7f0d4f82f56420ba1cbd4a7bb.zip
make PopStmt copy+clone
-rw-r--r--clippy_lints/src/loops/while_pop_unwrap.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/loops/while_pop_unwrap.rs b/clippy_lints/src/loops/while_pop_unwrap.rs
index fc6797d72c0..3a583396230 100644
--- a/clippy_lints/src/loops/while_pop_unwrap.rs
+++ b/clippy_lints/src/loops/while_pop_unwrap.rs
@@ -16,6 +16,7 @@ use super::WHILE_POP_UNWRAP;
 ///
 /// Depending on whether the value was assigned to a variable or not changes what pattern
 /// we use for the suggestion.
+#[derive(Copy, Clone)]
 enum PopStmt<'hir> {
     /// `x.pop().unwrap()` was and assigned to a variable.
     /// The pattern of this local variable will be used and the local statement