summaryrefslogtreecommitdiff
path: root/src/options.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-16 16:22:38 +0200
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-16 16:22:38 +0200
commit65fc7138fc7b4403ab122139a655e96c883ffd1c (patch)
treeca166ee572517a06d523272825ff550817d18be0 /src/options.rs
parent266be1b9759fbf49c0263a27a73d672294bfff75 (diff)
downloadrust_rrule-65fc7138fc7b4403ab122139a655e96c883ffd1c.zip
most yearly tests are migrated and passes
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 729a8d4..01a6378 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -35,7 +35,7 @@ pub struct ParsedOptions {
pub tzid: Option<String>,
pub dtstart: DateTime<Utc>,
pub wkst: usize,
- pub bysetpos: Vec<usize>,
+ pub bysetpos: Vec<isize>,
pub bymonth: Vec<usize>,
pub bymonthday: Vec<usize>,
pub bynmonthday: Vec<isize>,
@@ -99,7 +99,7 @@ impl ParsedOptions {
self.wkst = wkst;
self
}
- pub fn bysetpos(mut self, bysetpos: Vec<usize>) -> Self {
+ pub fn bysetpos(mut self, bysetpos: Vec<isize>) -> Self {
self.bysetpos = bysetpos;
self
}