mirror of
https://github.com/Xevion/time-banner.git
synced 2025-12-06 01:16:36 -06:00
refactor: rename abbr/relative modules
This commit is contained in:
@@ -49,7 +49,7 @@ pub fn parse_abbreviation(abbreviation: &str) -> Result<FixedOffset, String> {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::abbr::parse_abbreviation;
|
use crate::abbr_tz::parse_abbreviation;
|
||||||
use chrono::FixedOffset;
|
use chrono::FixedOffset;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@@ -143,7 +143,7 @@ pub fn parse_duration(str: &str) -> Result<Duration, String> {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::relative::{parse_duration, Months};
|
use crate::duration::{parse_duration, Months};
|
||||||
use chrono::Duration;
|
use chrono::Duration;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@@ -7,11 +7,11 @@ use axum::{routing::get, Router};
|
|||||||
use config::Configuration;
|
use config::Configuration;
|
||||||
use dotenvy::dotenv;
|
use dotenvy::dotenv;
|
||||||
|
|
||||||
mod abbr;
|
mod abbr_tz;
|
||||||
mod config;
|
mod config;
|
||||||
|
mod duration;
|
||||||
mod error;
|
mod error;
|
||||||
mod raster;
|
mod raster;
|
||||||
mod relative;
|
|
||||||
mod routes;
|
mod routes;
|
||||||
mod template;
|
mod template;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user