Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manually implement
Copy
on DateTime<Tz>
`derive` generates the following impls: ```rust impl<Tz: ::core::marker::Copy + TimeZone> ::core::marker::Copy for DateTime<Tz> where Tz::Offset: ::core::marker::Copy, {} impl<Tz: ::core::clone::Clone + TimeZone> ::core::clone::Clone for DateTime<Tz> where Tz::Offset: ::core::clone::Clone, { #[inline] fn clone(&self) -> DateTime<Tz> { DateTime { datetime: ::core::clone::Clone::clone(&self.datetime), offset: ::core::clone::Clone::clone(&self.offset), } } } ``` In the `Copy` impl, the `Tz: Copy` bound is un-necessary. Note that in the `Clone` impl, he `Tz: Clone` is also un-necessary, but it's implied by the `TimeZone` bound anyway, so there's not point having a manual implementation of `Clone`. Fixes #1571
- Loading branch information