summaryrefslogtreecommitdiff
path: root/src/options.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-20 22:08:19 +0200
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-20 22:08:19 +0200
commiteac4ef5fe5f0b86b576736ea49b53043c24c1357 (patch)
tree900d6ef011340e424949de496fd59dbf64bfd7a1 /src/options.rs
parentcda2ac25b9e5f091f354dccabd86d97c19c4ccde (diff)
downloadrust_rrule-eac4ef5fe5f0b86b576736ea49b53043c24c1357.zip
some refactoring and it works
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs4
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,