diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-01-20 00:37:07 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-01-20 00:52:40 +0100 |
commit | 4ed586d4757668eb9c074ca574280708345677ee (patch) | |
tree | 12e110677dbe42a6a11f2a1ffd12c89e8e8032d7 /src/icalwrap | |
parent | cc0da202d0e3f2c7392cc58896fb18b378369fb8 (diff) |
icaltime: implement From for all reference types
Diffstat (limited to 'src/icalwrap')
-rw-r--r-- | src/icalwrap/icaltime.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/icalwrap/icaltime.rs b/src/icalwrap/icaltime.rs index 7509cd8..949670c 100644 --- a/src/icalwrap/icaltime.rs +++ b/src/icalwrap/icaltime.rs @@ -25,9 +25,9 @@ impl Deref for IcalTime { } } -impl From<&DateTime<Local>> for IcalTime { - fn from(time: &DateTime<Local>) -> IcalTime { - time.into() +impl<T: Into<IcalTime> + Clone> From<&T> for IcalTime { + fn from(time: &T) -> IcalTime { + time.clone().into() } } |