diff options
author | Fredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local> | 2021-02-03 22:50:48 +0100 |
---|---|---|
committer | Fredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local> | 2021-02-03 22:50:48 +0100 |
commit | 3f00e3bca36bbb0866693e5f9f90e1d57903f92a (patch) | |
tree | f64970b7d13ea40c875189e18ce7f2a6d328f363 | |
parent | cc4ebe0e778298df981b38c853e58602946c98b6 (diff) | |
download | rust_rrule-3f00e3bca36bbb0866693e5f9f90e1d57903f92a.zip |
fmt
-rw-r--r-- | src/parse_options.rs | 2 | ||||
-rw-r--r-- | src/rrule_iter.rs | 2 | ||||
-rw-r--r-- | src/rruleset.rs | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/parse_options.rs b/src/parse_options.rs index f6af1d9..bc1530a 100644 --- a/src/parse_options.rs +++ b/src/parse_options.rs @@ -18,7 +18,7 @@ pub fn parse_options(options: &Options) -> Result<ParsedOptions, RRuleParseError UTC }; - let mut bynweekday: Vec<Vec<isize>> = vec![]; + let _bynweekday: Vec<Vec<isize>> = vec![]; let mut bynmonthday: Vec<isize> = vec![]; let mut partial_options = Options::concat(&default_partial_options, options); diff --git a/src/rrule_iter.rs b/src/rrule_iter.rs index a3ead19..ad87576 100644 --- a/src/rrule_iter.rs +++ b/src/rrule_iter.rs @@ -170,7 +170,7 @@ impl IntoIterator for RRule { fn into_iter(self) -> Self::IntoIter { let mut ii = IterInfo::new(self.options); - let mut counter_date = ii.options.dtstart; + let counter_date = ii.options.dtstart; ii.rebuild(counter_date.year() as isize, counter_date.month() as usize); let timeset = make_timeset(&ii, &counter_date, &ii.options); diff --git a/src/rruleset.rs b/src/rruleset.rs index 7bd49b3..4ae7c41 100644 --- a/src/rruleset.rs +++ b/src/rruleset.rs @@ -3,7 +3,7 @@ use crate::options::RRuleParseError; use crate::rrule::RRule; use crate::rrulestr::build_rruleset; use chrono::prelude::*; -use chrono_tz::{Tz, UTC}; +use chrono_tz::Tz; use std::str::FromStr; #[derive(Debug, Clone)] @@ -97,6 +97,7 @@ impl FromStr for RRuleSet { mod test_iter_set { use super::*; use crate::options::*; + use chrono_tz::UTC; fn ymd_hms(year: i32, month: u32, day: u32, hour: u32, minute: u32, second: u32) -> DTime { UTC.ymd(year, month, day).and_hms(hour, minute, second) |