diff options
| author | Ronald Kinard <[email protected]> | 2015-06-11 23:57:25 -0500 |
|---|---|---|
| committer | Ronald Kinard <[email protected]> | 2015-06-11 23:57:25 -0500 |
| commit | d792c7bcd8ade2c3f9185e5d4e71cdfa294fbe02 (patch) | |
| tree | 44b43e6ba577bef8bfaa8e3bd7f9e00bb8e4067b /src/raw | |
| parent | Make idiomatic interfaces to a few functions. (diff) | |
| download | ctru-rs-d792c7bcd8ade2c3f9185e5d4e71cdfa294fbe02.tar.xz ctru-rs-d792c7bcd8ade2c3f9185e5d4e71cdfa294fbe02.zip | |
Use annotation for deriving Clone.
Diffstat (limited to 'src/raw')
| -rw-r--r-- | src/raw/services/gsp.rs | 12 |
1 files 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 |