mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 09:27:25 +00:00
make PopStmt copy+clone
This commit is contained in:
parent
ab9b7a5ad2
commit
f10e39fd2b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue