make PopStmt copy+clone

This commit is contained in:
y21 2023-04-18 00:40:03 +02:00
parent ab9b7a5ad2
commit f10e39fd2b

View file

@ -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