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 27, 2023
1 parent acb9141 commit 566cf60
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;
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;
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 566cf60

Please sign in to comment.