Skip to content

Commit

Permalink
Make round module public
Browse files Browse the repository at this point in the history
(so we don't need to show it in the main documentation)
  • Loading branch information
pitdicker committed Sep 27, 2023
1 parent 819dea0 commit 5237de6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ pub use offset::LocalResult;
#[doc(inline)]
pub use offset::{FixedOffset, Offset, TimeZone, Utc};

mod round;
pub mod round;
pub use round::{DurationRound, RoundingError, SubsecRound};

mod weekday;
Expand Down
2 changes: 2 additions & 0 deletions src/round.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// This is a part of Chrono.
// See README.md and LICENSE.txt for details.

//! Functionality for rounding or truncating a `DateTime` by a `Duration`.
use crate::datetime::DateTime;
use crate::duration::Duration;
use crate::NaiveDateTime;
Expand Down

0 comments on commit 5237de6

Please sign in to comment.