diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-20 22:08:19 +0200 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-20 22:08:19 +0200 |
commit | eac4ef5fe5f0b86b576736ea49b53043c24c1357 (patch) | |
tree | 900d6ef011340e424949de496fd59dbf64bfd7a1 /src/options.rs | |
parent | cda2ac25b9e5f091f354dccabd86d97c19c4ccde (diff) | |
download | rust_rrule-eac4ef5fe5f0b86b576736ea49b53043c24c1357.zip |
some refactoring and it works
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options.rs b/src/options.rs index 59f1c43..c3aeff3 100644 --- a/src/options.rs +++ b/src/options.rs @@ -14,7 +14,7 @@ pub struct YearInfo { pub wnomask: Option<Vec<usize>>, } -#[derive(Debug, PartialEq, PartialOrd)] +#[derive(Debug, PartialEq, PartialOrd, Clone)] pub enum Frequenzy { YEARLY = 0, MONTHLY = 1, @@ -25,7 +25,7 @@ pub enum Frequenzy { SECONDLY = 6, } -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct ParsedOptions { pub freq: Frequenzy, pub interval: usize, |