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:
David Kellum 2018-01-12 14:38:00 -08:00
parent d2bf1494b1
commit 353a7bbbc4
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ impl<Tz: TimeZone> DateTime<Tz> where Tz::Offset: fmt::Display {
use format::Fixed::*;
use format::Fixed::Nanosecond;
static PREFIX: &[Item<'static>] = &[
const PREFIX: &'static [Item<'static>] = &[
Numeric(Year, Zero),
Literal("-"),
Numeric(Month, Zero),