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)]
|
||||
mod tests {
|
||||
use crate::abbr::parse_abbreviation;
|
||||
use crate::abbr_tz::parse_abbreviation;
|
||||
use chrono::FixedOffset;
|
||||
|
||||
#[test]
|
||||
@@ -143,7 +143,7 @@ pub fn parse_duration(str: &str) -> Result<Duration, String> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::relative::{parse_duration, Months};
|
||||
use crate::duration::{parse_duration, Months};
|
||||
use chrono::Duration;
|
||||
|
||||
#[test]
|
||||
@@ -7,11 +7,11 @@ use axum::{routing::get, Router};
|
||||
use config::Configuration;
|
||||
use dotenvy::dotenv;
|
||||
|
||||
mod abbr;
|
||||
mod abbr_tz;
|
||||
mod config;
|
||||
mod duration;
|
||||
mod error;
|
||||
mod raster;
|
||||
mod relative;
|
||||
mod routes;
|
||||
mod template;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user