diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-12-14 22:46:59 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-19 10:43:24 -0500 |
| commit | f2ef2cda526ba601cf5091f65cb12962a0ae0956 (patch) | |
| tree | 020d5860f63056176f6749edcb999e9a1559ddfc /src/libregex/parse.rs | |
| parent | fd4a5d9ef12a87cad61f2fa5dd0a011df263a2d0 (diff) | |
| download | rust-f2ef2cda526ba601cf5091f65cb12962a0ae0956.tar.gz rust-f2ef2cda526ba601cf5091f65cb12962a0ae0956.zip | |
libregex: use `#[deriving(Copy)]`
Diffstat (limited to 'src/libregex/parse.rs')
| -rw-r--r-- | src/libregex/parse.rs | 4 |
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 { |
