Skip to content

Commit

Permalink
Fix access specifiers
Browse files Browse the repository at this point in the history
- Makes TimeGranularity private instead of public.
  • Loading branch information
nordzilla committed Jan 25, 2021
1 parent 7343a55 commit c15bd87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/datetime/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/master/LICENSE ).

use crate::date::{self, DateTimeType};
use crate::error::DateTimeFormatError;
use crate::fields::{self, FieldLength, FieldSymbol};
use crate::pattern::{Pattern, PatternItem};
use crate::provider::DateTimeDates;
use crate::date::{self, DateTimeType};
use icu_provider::structs;
use std::fmt;
use writeable::Writeable;
Expand Down Expand Up @@ -99,7 +99,7 @@ fn get_day_of_week(year: usize, month: date::Month, day: date::Day) -> date::Wee
/// The granularity of time represented in a pattern item.
/// Ordered from least granular to most granular for comparsion.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub enum TimeGranularity {
enum TimeGranularity {
Hours,
Minutes,
Seconds,
Expand Down

0 comments on commit c15bd87

Please sign in to comment.