Skip to content

Commit 5501607

Browse files
committed
chore(date): remove unnecessary OsString qualifications
1 parent 3356b00 commit 5501607

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uu/date/src/date.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ fn parse_military_timezone_with_offset(s: &str) -> Option<(i32, DayDelta)> {
318318
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
319319
let matches = uucore::clap_localization::handle_clap_result(uu_app(), args)?;
320320

321-
let date_source = if let Some(date_os) = matches.get_one::<std::ffi::OsString>(OPT_DATE) {
321+
let date_source = if let Some(date_os) = matches.get_one::<OsString>(OPT_DATE) {
322322
// Convert OsString to String, handling invalid UTF-8 with GNU-compatible error
323323
let date = date_os.to_str().ok_or_else(|| {
324324
let bytes = date_os.as_encoded_bytes();
@@ -650,7 +650,7 @@ pub fn uu_app() -> Command {
650650
.value_name("STRING")
651651
.allow_hyphen_values(true)
652652
.overrides_with(OPT_DATE)
653-
.value_parser(clap::value_parser!(std::ffi::OsString))
653+
.value_parser(clap::value_parser!(OsString))
654654
.help(translate!("date-help-date")),
655655
)
656656
.arg(

0 commit comments

Comments
 (0)