From 47a4eca20792688dc125b3c1cd6756b500f56e22 Mon Sep 17 00:00:00 2001 From: Connor E <38229097+c-edw@users.noreply.github.com> Date: Fri, 26 Oct 2018 21:20:42 +0100 Subject: [PATCH] Make Volatile derive Copy. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f1f854f..8372c8f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,7 +34,7 @@ use core::ptr; /// take and return copies of the value. /// /// The size of this struct is the same as the size of the contained type. -#[derive(Debug, Clone)] +#[derive(Debug, Copy, Clone)] pub struct Volatile(T); impl Volatile {