Skip to content

Commit

Permalink
Rename duration module to time_delta
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Feb 2, 2024
1 parent dc9640f commit 1174953
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,13 @@
#[cfg(feature = "alloc")]
extern crate alloc;

mod duration;
pub use duration::TimeDelta;
mod time_delta;
pub use time_delta::TimeDelta;
/// Alias of [`TimeDelta`]
pub type Duration = TimeDelta;
#[cfg(feature = "std")]
#[doc(no_inline)]
pub use duration::OutOfRangeError;
pub use time_delta::OutOfRangeError;

use core::fmt;

Expand Down Expand Up @@ -565,7 +565,7 @@ pub mod serde {
#[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
pub mod rkyv {
pub use crate::datetime::ArchivedDateTime;
pub use crate::duration::ArchivedTimeDelta;
pub use crate::time_delta::ArchivedTimeDelta;
/// Alias of [`ArchivedTimeDelta`]
pub type ArchivedDuration = ArchivedTimeDelta;
pub use crate::month::ArchivedMonth;
Expand Down
2 changes: 1 addition & 1 deletion src/naive/datetime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ use core::{fmt, str};
#[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
use rkyv::{Archive, Deserialize, Serialize};

use crate::duration::NANOS_PER_SEC;
#[cfg(feature = "alloc")]
use crate::format::DelayedFormat;
use crate::format::{parse, parse_and_remainder, ParseError, ParseResult, Parsed, StrftimeItems};
use crate::format::{Fixed, Item, Numeric, Pad};
use crate::naive::{Days, IsoWeek, NaiveDate, NaiveTime};
use crate::offset::Utc;
use crate::time_delta::NANOS_PER_SEC;
use crate::{
expect, try_opt, DateTime, Datelike, FixedOffset, LocalResult, Months, TimeDelta, TimeZone,
Timelike, Weekday,
Expand Down
File renamed without changes.

0 comments on commit 1174953

Please sign in to comment.