From 0f992d031ade1119e7e081e75caba93b25099b0b Mon Sep 17 00:00:00 2001 From: Fredrik Meringdal Date: Tue, 20 Oct 2020 23:47:50 +0200 Subject: restructure --- tests/rrule.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/rrule.rs') diff --git a/tests/rrule.rs b/tests/rrule.rs index 225ae4b..65aed6c 100644 --- a/tests/rrule.rs +++ b/tests/rrule.rs @@ -4,8 +4,8 @@ extern crate rrule; use chrono::prelude::*; use chrono_tz::UTC; -use rrule::rrule::RRule; use rrule::options::*; +use rrule::rrule::RRule; #[cfg(test)] mod test { @@ -23,7 +23,6 @@ mod test { } fn test_recurring(options: ParsedOptions, expected_dates: &Vec>) { - let mut rrule = RRule::new(options); let res = rrule.all(); @@ -41,8 +40,7 @@ mod test { #[test] fn yearly() { - let options = - ParsedOptions::new(Frequenzy::YEARLY, &ymd_hms(1997, 9, 2, 9, 0, 0)).count(3); + let options = ParsedOptions::new(Frequenzy::YEARLY, &ymd_hms(1997, 9, 2, 9, 0, 0)).count(3); test_recurring( options, &vec![ -- cgit v1.2.3