Skip to content

Commit 6445a5d

Browse files
committed
derive copy/clone
1 parent 9a8f206 commit 6445a5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/ptr_offset_with_cast.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ fn build_suggestion<'a, 'tcx>(
126126
Some(format!("{}.{}({})", receiver, method.suggestion(), cast_lhs))
127127
}
128128

129+
#[derive(Copy, Clone)]
129130
enum Method {
130131
Offset,
131132
WrappingOffset,

0 commit comments

Comments
 (0)