Skip to content

Commit f10e39f

Browse files
committed
make PopStmt copy+clone
1 parent ab9b7a5 commit f10e39f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/loops/while_pop_unwrap.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use super::WHILE_POP_UNWRAP;
1616
///
1717
/// Depending on whether the value was assigned to a variable or not changes what pattern
1818
/// we use for the suggestion.
19+
#[derive(Copy, Clone)]
1920
enum PopStmt<'hir> {
2021
/// `x.pop().unwrap()` was and assigned to a variable.
2122
/// The pattern of this local variable will be used and the local statement

0 commit comments

Comments
 (0)