diff --git a/src/datetime.rs b/src/datetime.rs index 2e6c194..a03b42b 100644 --- a/src/datetime.rs +++ b/src/datetime.rs @@ -287,7 +287,7 @@ impl DateTime 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),