Use const for compat with rustc 1.13-16
Was using static but that's only supported as of rustc 1.17 (rust these older versions. Also continue using the copious explicit 'static lifetimes for the same compatibility, despite the clippy lint.
This commit is contained in:
parent
d2bf1494b1
commit
353a7bbbc4
|
@ -287,7 +287,7 @@ impl<Tz: TimeZone> DateTime<Tz> where Tz::Offset: fmt::Display {
|
||||||
use format::Fixed::*;
|
use format::Fixed::*;
|
||||||
use format::Fixed::Nanosecond;
|
use format::Fixed::Nanosecond;
|
||||||
|
|
||||||
static PREFIX: &[Item<'static>] = &[
|
const PREFIX: &'static [Item<'static>] = &[
|
||||||
Numeric(Year, Zero),
|
Numeric(Year, Zero),
|
||||||
Literal("-"),
|
Literal("-"),
|
||||||
Numeric(Month, Zero),
|
Numeric(Month, Zero),
|
||||||
|
|
Loading…
Reference in New Issue