Skip to content

Commit ea903d4

Browse files
authored
date: fix "unused variable" warning (#11637)
1 parent cfa92db commit ea903d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/uu/date/src/date.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,8 @@ fn format_date_with_locale_aware_months(
706706
date: &Zoned,
707707
format_string: &str,
708708
config: &Config<PosixCustom>,
709-
skip_localization: bool,
709+
#[cfg(feature = "i18n-datetime")] skip_localization: bool,
710+
#[cfg(not(feature = "i18n-datetime"))] _skip_localization: bool,
710711
) -> Result<String, String> {
711712
// First check if format string has GNU modifiers (width/flags) and format if present
712713
// This optimization combines detection and formatting in a single pass

0 commit comments

Comments
 (0)