From 5db87c27807a1df5edecd878881868dac62fdb66 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Tue, 27 Jun 2023 12:24:18 +0200 Subject: [PATCH] Move module declaration to top --- src/format/mod.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/format/mod.rs b/src/format/mod.rs index d24de373e6..801cf05579 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; +pub(crate) 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; -pub(crate) 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).