diff options
| author | Corey Farwell <coreyf@rwell.org> | 2018-08-29 08:01:05 -0500 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2018-08-29 08:01:05 -0500 |
| commit | 6445a5d79d642d38ea2efba3e8c08cf87ba40920 (patch) | |
| tree | 06a4385f8c31d703e25170471aab66113c07de05 | |
| parent | 9a8f206662d63d0218e7f8318c8ddbfccca6bfa8 (diff) | |
| download | rust-6445a5d79d642d38ea2efba3e8c08cf87ba40920.tar.gz rust-6445a5d79d642d38ea2efba3e8c08cf87ba40920.zip | |
derive copy/clone
| -rw-r--r-- | clippy_lints/src/ptr_offset_with_cast.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/ptr_offset_with_cast.rs b/clippy_lints/src/ptr_offset_with_cast.rs index f8e35f84db1..7f34aca27f0 100644 --- a/clippy_lints/src/ptr_offset_with_cast.rs +++ b/clippy_lints/src/ptr_offset_with_cast.rs @@ -126,6 +126,7 @@ fn build_suggestion<'a, 'tcx>( Some(format!("{}.{}({})", receiver, method.suggestion(), cast_lhs)) } +#[derive(Copy, Clone)] enum Method { Offset, WrappingOffset, |
