Fix Clippy lints: needless_lifetimes

This commit is contained in:
Brandon W Maister 2017-06-23 14:55:17 -05:00
parent 3e6e0e51c6
commit c63a012253
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ impl<Tz: TimeZone> Date<Tz> {
/// Retrieves an associated offset from UTC.
#[inline]
pub fn offset<'a>(&'a self) -> &'a Tz::Offset {
pub fn offset(&self) -> &Tz::Offset {
&self.offset
}

View File

@ -98,7 +98,7 @@ impl<Tz: TimeZone> DateTime<Tz> {
/// Retrieves an associated offset from UTC.
#[inline]
pub fn offset<'a>(&'a self) -> &'a Tz::Offset {
pub fn offset(&self) -> &Tz::Offset {
&self.offset
}