Fix Clippy lints: needless_lifetimes
This commit is contained in:
parent
3e6e0e51c6
commit
c63a012253
|
@ -184,7 +184,7 @@ impl<Tz: TimeZone> Date<Tz> {
|
||||||
|
|
||||||
/// Retrieves an associated offset from UTC.
|
/// Retrieves an associated offset from UTC.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn offset<'a>(&'a self) -> &'a Tz::Offset {
|
pub fn offset(&self) -> &Tz::Offset {
|
||||||
&self.offset
|
&self.offset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ impl<Tz: TimeZone> DateTime<Tz> {
|
||||||
|
|
||||||
/// Retrieves an associated offset from UTC.
|
/// Retrieves an associated offset from UTC.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn offset<'a>(&'a self) -> &'a Tz::Offset {
|
pub fn offset(&self) -> &Tz::Offset {
|
||||||
&self.offset
|
&self.offset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue