diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-01-16 22:21:53 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-01-16 22:21:53 +0100 |
commit | 35019b53f28cb8716ea6826f579afc4f70173818 (patch) | |
tree | c2fe52a0ba34ceae4a8c810c86e93dbcbbeba3aa /src/icalwrap | |
parent | 12291396c9297c7f3552d4e2fb2cc4137bf1ccef (diff) |
clippy: fix unneeded return statement
Diffstat (limited to 'src/icalwrap')
-rw-r--r-- | src/icalwrap/icalvevent.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/icalwrap/icalvevent.rs b/src/icalwrap/icalvevent.rs index 37b237b..9809dac 100644 --- a/src/icalwrap/icalvevent.rs +++ b/src/icalwrap/icalvevent.rs @@ -128,11 +128,11 @@ impl IcalVEvent { pub fn is_recur_valid(&self) -> bool { if self.is_recur_master() { - return true; + true } else if self.is_recur() { let timestamp = self.instance_timestamp.unwrap(); let recur_times = self.get_recur_datetimes(); - return recur_times.contains(×tamp.with_timezone(&Utc)); + recur_times.contains(×tamp.with_timezone(&Utc)) } else { self.instance_timestamp.is_none() } |