about summary refs log tree commit diff
path: root/src/libregex/parse.rs
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-12-14 22:46:59 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-19 10:43:24 -0500
commitf2ef2cda526ba601cf5091f65cb12962a0ae0956 (patch)
tree020d5860f63056176f6749edcb999e9a1559ddfc /src/libregex/parse.rs
parentfd4a5d9ef12a87cad61f2fa5dd0a011df263a2d0 (diff)
downloadrust-f2ef2cda526ba601cf5091f65cb12962a0ae0956.tar.gz
rust-f2ef2cda526ba601cf5091f65cb12962a0ae0956.zip
libregex: use `#[deriving(Copy)]`
Diffstat (limited to 'src/libregex/parse.rs')
-rw-r--r--src/libregex/parse.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libregex/parse.rs b/src/libregex/parse.rs
index 60cf45aeddc..78558a32266 100644
--- a/src/libregex/parse.rs
+++ b/src/libregex/parse.rs
@@ -77,14 +77,12 @@ pub enum Repeater {
     OneMore,
 }
 
-#[deriving(Show, Clone)]
+#[deriving(Copy, Show, Clone)]
 pub enum Greed {
     Greedy,
     Ungreedy,
 }
 
-impl Copy for Greed {}
-
 impl Greed {
     pub fn is_greedy(&self) -> bool {
         match *self {