summaryrefslogtreecommitdiff
path: root/src/rruleset.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-31 18:15:21 +0100
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-31 18:15:21 +0100
commita600a4e88053a89670aa4bdec0800089018f5c1c (patch)
tree8911ff0dbb9ba184573630aca58a241157a4234a /src/rruleset.rs
parent93a7edadb0b920752d17c170aa02eda1d4953134 (diff)
downloadrust_rrule-a600a4e88053a89670aa4bdec0800089018f5c1c.zip
removed more unwraps
Diffstat (limited to 'src/rruleset.rs')
-rw-r--r--src/rruleset.rs15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/rruleset.rs b/src/rruleset.rs
index 810c18e..4a3caa5 100644
--- a/src/rruleset.rs
+++ b/src/rruleset.rs
@@ -1,8 +1,8 @@
-use chrono::prelude::*;
-use chrono_tz::{Tz, UTC};
-use crate::rrule::RRule;
use crate::datetime::DTime;
+use crate::rrule::RRule;
use crate::rruleset_iter::RRuleSetIter;
+use chrono::prelude::*;
+use chrono_tz::{Tz, UTC};
#[derive(Debug)]
pub struct RRuleSet {
@@ -81,14 +81,7 @@ mod test_iter_set {
use super::*;
use crate::options::*;
- fn ymd_hms(
- year: i32,
- month: u32,
- day: u32,
- hour: u32,
- minute: u32,
- second: u32,
- ) -> DTime {
+ 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)
}