summaryrefslogtreecommitdiff
path: root/src/rrule.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/rrule.rs
parent93a7edadb0b920752d17c170aa02eda1d4953134 (diff)
downloadrust_rrule-a600a4e88053a89670aa4bdec0800089018f5c1c.zip
removed more unwraps
Diffstat (limited to 'src/rrule.rs')
-rw-r--r--src/rrule.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rrule.rs b/src/rrule.rs
index d7aa198..5083161 100644
--- a/src/rrule.rs
+++ b/src/rrule.rs
@@ -1,6 +1,6 @@
use crate::iter::iter;
-use crate::rrule_iter::*;
use crate::options::*;
+use crate::rrule_iter::*;
use chrono::prelude::*;
use chrono_tz::Tz;
@@ -11,9 +11,7 @@ pub struct RRule {
impl RRule {
pub fn new(options: ParsedOptions) -> Self {
- Self {
- options
- }
+ Self { options }
}
pub fn all(&mut self) -> Vec<DateTime<Tz>> {