diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-24 16:36:30 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-25 11:20:38 -0500 |
| commit | bff462302b3e0a8f68c14cad2806c7ff5005364e (patch) | |
| tree | 1470a970b04f0e7df147ba87454eafc85f5a807c /src/libstd | |
| parent | 102ab57d8085fcb87c02dae929959ccaaa9af548 (diff) | |
| download | rust-bff462302b3e0a8f68c14cad2806c7ff5005364e.tar.gz rust-bff462302b3e0a8f68c14cad2806c7ff5005364e.zip | |
cleanup: s/impl Copy/#[derive(Copy)]/g
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/os.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 985a8cd32e2..ca3c7e93774 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -813,6 +813,8 @@ pub struct MemoryMap { } /// Type of memory map +#[allow(raw_pointer_derive)] +#[derive(Copy)] pub enum MemoryMapKind { /// Virtual memory map. Usually used to change the permissions of a given /// chunk of memory. Corresponds to `VirtualAlloc` on Windows. @@ -823,9 +825,9 @@ pub enum MemoryMapKind { MapVirtual } -impl Copy for MemoryMapKind {} - /// Options the memory map is created with +#[allow(raw_pointer_derive)] +#[derive(Copy)] pub enum MapOption { /// The memory should be readable MapReadable, @@ -852,8 +854,6 @@ pub enum MapOption { MapNonStandardFlags(c_int), } -impl Copy for MapOption {} - /// Possible errors when creating a map. #[derive(Copy, Show)] pub enum MapError { |
