Skip to content

Commit

Permalink
Move module declaration to top
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Jun 29, 2023
1 parent 922efca commit 5db87c2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 5db87c2

Please sign in to comment.