Skip to content

Commit

Permalink
DurationUnit doesn't need to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
nightkr committed Sep 15, 2023
1 parent fe1911e commit 8ef94a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/duration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl Duration {
/// [`std::time::Duration`] back to a human-readable format, which is defined
/// in the [`Display`] implementation of [`Duration`].
#[derive(Debug, strum::EnumString, strum::Display, strum::AsRefStr, strum::EnumIter)]
pub enum DurationUnit {
enum DurationUnit {
#[strum(serialize = "d")]
Days,

Expand All @@ -211,7 +211,7 @@ pub enum DurationUnit {
impl DurationUnit {
/// Returns the number of whole milliseconds in each supported
/// [`DurationUnit`].
pub fn millis(&self) -> u128 {
fn millis(&self) -> u128 {
use DurationUnit::*;

match self {
Expand Down

0 comments on commit 8ef94a7

Please sign in to comment.