diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-17 17:48:22 +0200 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-17 17:48:22 +0200 |
commit | 0ed916e47dfffe56f37ce52488160a5cc6718255 (patch) | |
tree | 078ea9393a535d7cc8f1c6699df9b57631e286d7 /src/options.rs | |
parent | a02757e202926847ab04b7f7ec2861d3c19608e7 (diff) | |
download | rust_rrule-0ed916e47dfffe56f37ce52488160a5cc6718255.zip |
support for negative yearday
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 30143c1..9d037db 100644 --- a/src/options.rs +++ b/src/options.rs @@ -38,7 +38,7 @@ pub struct ParsedOptions { pub bymonth: Vec<usize>, pub bymonthday: Vec<usize>, pub bynmonthday: Vec<isize>, - pub byyearday: Vec<usize>, + pub byyearday: Vec<isize>, pub byweekno: Vec<isize>, pub byweekday: Vec<usize>, pub byhour: Vec<usize>, @@ -114,7 +114,7 @@ impl ParsedOptions { self.bynmonthday = bynmonthday; self } - pub fn byyearday(mut self, byyearday: Vec<usize>) -> Self { + pub fn byyearday(mut self, byyearday: Vec<isize>) -> Self { self.byyearday = byyearday; self } |