From d792c7bcd8ade2c3f9185e5d4e71cdfa294fbe02 Mon Sep 17 00:00:00 2001 From: Ronald Kinard Date: Thu, 11 Jun 2015 23:57:25 -0500 Subject: [PATCH] Use annotation for deriving Clone. --- src/raw/services/gsp.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/raw/services/gsp.rs b/src/raw/services/gsp.rs index 3420186..029d782 100644 --- a/src/raw/services/gsp.rs +++ b/src/raw/services/gsp.rs @@ -30,7 +30,7 @@ pub enum GSP_FramebufferFormats { } #[repr(C)] -#[derive(Copy)] +#[derive(Clone, Copy)] pub struct GSP_CaptureInfoEntry { //See this for GSP_CaptureInfoEntry and GSP_CaptureInfo: http://3dbrew.org/wiki/GSPGPU:ImportDisplayCaptureInfo framebuf0_vaddr: *mut u32, framebuf1_vaddr: *mut u32, @@ -38,20 +38,12 @@ pub struct GSP_CaptureInfoEntry { //See this for GSP_CaptureInfoEntry and GSP_Ca framebuf_widthbytesize: u32, } -impl Clone for GSP_CaptureInfoEntry { - fn clone(&self) -> Self { *self } -} - #[repr(C)] -#[derive(Copy)] +#[derive(Clone, Copy)] pub struct GSP_CaptureInfo { screencapture: [GSP_CaptureInfoEntry; 2usize] } -impl Clone for GSP_CaptureInfo { - fn clone(&self) -> Self { *self } -} - #[repr(C)] pub enum GSP_Event { GSPEVENT_PSC0 = 0, // memory fill completed