diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-01-23 20:07:30 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-01-23 20:07:30 +0100 |
commit | 0eed2f736252ebe9526c1c176be61fa2a7c1deba (patch) | |
tree | 127d001c03eb617dc511a882f89fdbe11e63d442 /src/icalwrap | |
parent | d9e0cd0f1ed8b444147256cd8f9645f1468bdfbf (diff) |
make clippy happy
Diffstat (limited to 'src/icalwrap')
-rw-r--r-- | src/icalwrap/icaltime.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/icalwrap/icaltime.rs b/src/icalwrap/icaltime.rs index e62df1e..632c673 100644 --- a/src/icalwrap/icaltime.rs +++ b/src/icalwrap/icaltime.rs @@ -66,7 +66,7 @@ impl IcalTime { } pub fn as_date(&self) -> IcalTime { - let mut time = self.time.clone(); + let mut time = self.time; time.is_date = 1; IcalTime{ time } } @@ -83,8 +83,7 @@ impl IcalTime { let time = unsafe { ical::icaltime_convert_to_zone(self.time, **timezone) }; - let result = IcalTime { time }; - result + IcalTime { time } } pub fn pred(&self) -> IcalTime { |