diff --git a/src/format/mod.rs b/src/format/mod.rs index 02a9d63908..151c5ebb1f 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -42,6 +42,15 @@ use std::error::Error; use crate::{Month, ParseMonthError, ParseWeekdayError, Weekday}; +mod formatting; +mod parsed; + +// due to the size of parsing routines, they are in separate modules. +mod parse; +mod scan; + +pub mod strftime; + #[cfg(feature = "unstable-locales")] pub(crate) mod locales; @@ -379,15 +388,6 @@ const TOO_SHORT: ParseError = ParseError(ParseErrorKind::TooShort); const TOO_LONG: ParseError = ParseError(ParseErrorKind::TooLong); const BAD_FORMAT: ParseError = ParseError(ParseErrorKind::BadFormat); - -mod formatting; -mod parsed; - -// due to the size of parsing routines, they are in separate modules. -mod parse; -mod scan; - -pub mod strftime; // this implementation is here only because we need some private code from `scan` /// Parsing a `str` into a `Weekday` uses the format [`%W`](./format/strftime/index.html).