date: Follow clippy and remove a harmful reference.

This commit is contained in:
Emmanuel Gil Peyrot 2019-07-26 01:54:26 +02:00
commit f167e8b591
2 changed files with 4 additions and 4 deletions

View file

@ -22,8 +22,8 @@ impl DateTime {
}
/// Returns a new `DateTime` with a different timezone.
pub fn with_timezone(&self, tz: &FixedOffset) -> DateTime {
DateTime(self.0.with_timezone(tz))
pub fn with_timezone(&self, tz: FixedOffset) -> DateTime {
DateTime(self.0.with_timezone(&tz))
}
/// Formats this `DateTime` with the specified format string.