@@ -105,7 +105,7 @@ mod format {
105
105
( YYYYMMDDHHMM_ZULU_OFFSET , 18 ) ,
106
106
] ;
107
107
108
- pub ( crate ) const PATTERNS_NOTZ : [ ( & str , usize ) ; 9 ] = [
108
+ pub ( crate ) const PATTERNS_NO_TZ : [ ( & str , usize ) ; 9 ] = [
109
109
( YYYYMMDDHHMMSS , 29 ) ,
110
110
( POSIX_LOCALE , 24 ) ,
111
111
( YYYYMMDDHHMMSS_HYPHENATED_ZULU , 20 ) ,
@@ -117,7 +117,7 @@ mod format {
117
117
( YYYYMMDDHHMM , 12 ) ,
118
118
] ;
119
119
120
- pub ( crate ) const PATTERNS_DATE_NOTZ : [ ( & str , usize ) ; 8 ] = [
120
+ pub ( crate ) const PATTERNS_DATE_NO_TZ : [ ( & str , usize ) ; 8 ] = [
121
121
( ISO_8601 , 10 ) ,
122
122
( MMDDYYYY_SLASH , 10 ) ,
123
123
( ISO_8601 , 9 ) ,
@@ -256,7 +256,7 @@ fn parse_reference_date(date: DateTime<Local>, s: &str) -> Option<(DateTime<Fixe
256
256
}
257
257
258
258
// DateTimes without timezone.
259
- for ( pattern, n) in format:: PATTERNS_NOTZ {
259
+ for ( pattern, n) in format:: PATTERNS_NO_TZ {
260
260
if s. len ( ) >= n {
261
261
if let Ok ( parsed) = NaiveDateTime :: parse_from_str ( & s[ 0 ..n] , pattern) {
262
262
// Special case: `chrono` can only parse a datetime like
@@ -281,7 +281,7 @@ fn parse_reference_date(date: DateTime<Local>, s: &str) -> Option<(DateTime<Fixe
281
281
}
282
282
283
283
// Dates without timezone.
284
- for ( pattern, n) in format:: PATTERNS_DATE_NOTZ {
284
+ for ( pattern, n) in format:: PATTERNS_DATE_NO_TZ {
285
285
if s. len ( ) >= n {
286
286
if let Ok ( parsed) = NaiveDate :: parse_from_str ( & s[ 0 ..n] , pattern) {
287
287
match date
0 commit comments