summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local>2021-04-07 11:47:25 +0200
committerFredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local>2021-04-07 11:47:25 +0200
commite8d0d3b8cd54120fbbba4ae1be9ebacc44c7c979 (patch)
tree2bb3bcab91b7d4e64a5aba5853c1613e081e9fa6
parent9392f9836d41c691b5049a095b95ff12f876f758 (diff)
downloadrust_rrule-e8d0d3b8cd54120fbbba4ae1be9ebacc44c7c979.zip
fmt
-rw-r--r--src/rrule_iter.rs3
-rw-r--r--tests/rrule.rs4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/rrule_iter.rs b/src/rrule_iter.rs
index cd21b65..7ec0275 100644
--- a/src/rrule_iter.rs
+++ b/src/rrule_iter.rs
@@ -93,8 +93,7 @@ impl RRuleIter {
let year_ordinal = self.ii.yearordinal().unwrap();
// Ordinal conversion uses UTC: if we apply local-TZ here, then
// just below we'll end up double-applying.
- let date =
- from_ordinal(year_ordinal + current_day, &UTC);
+ let date = from_ordinal(year_ordinal + current_day, &UTC);
// We apply the local-TZ here,
let date = options.tzid.ymd(date.year(), date.month(), date.day());
for k in 0..self.timeset.len() {
diff --git a/tests/rrule.rs b/tests/rrule.rs
index a7b60cb..64cac9c 100644
--- a/tests/rrule.rs
+++ b/tests/rrule.rs
@@ -9,8 +9,8 @@ use rrule::{Frequenzy, ParsedOptions, RRule};
#[cfg(test)]
mod test {
use super::*;
- use rrule::Options;
use chrono::Weekday::Sat;
+ use rrule::Options;
fn ymd_hms(
year: i32,
@@ -6880,9 +6880,9 @@ mod test {
);
}
- use chrono_tz::Europe::Berlin;
use chrono_tz::America::Los_Angeles;
use chrono_tz::America::New_York;
+ use chrono_tz::Europe::Berlin;
#[test]
fn test_timezones_weekly() {