From f10e39fd2be243b7f0d4f82f56420ba1cbd4a7bb Mon Sep 17 00:00:00 2001 From: y21 <30553356+y21@users.noreply.github.com> Date: Tue, 18 Apr 2023 00:40:03 +0200 Subject: [PATCH] make PopStmt copy+clone --- clippy_lints/src/loops/while_pop_unwrap.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/clippy_lints/src/loops/while_pop_unwrap.rs b/clippy_lints/src/loops/while_pop_unwrap.rs index fc6797d72c0d..3a583396230c 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