mirror of
https://github.com/eza-community/eza
synced 2024-10-02 22:23:45 +00:00
fix build
This commit is contained in:
parent
1b54874ce8
commit
0bf3148db0
|
@ -14,7 +14,7 @@ pub enum OptionsError {
|
|||
Parse(ParseError),
|
||||
|
||||
/// The user supplied an illegal choice to an Argument.
|
||||
BadArgument(&'static Arg, String),
|
||||
BadArgument(&'static Arg, OsString),
|
||||
|
||||
/// The user supplied a set of options that are unsupported
|
||||
Unsupported(String),
|
||||
|
|
|
@ -254,14 +254,13 @@ impl TimeFormat {
|
|||
}
|
||||
};
|
||||
|
||||
let word = word.to_string_lossy();
|
||||
match word.as_ref() {
|
||||
match word.to_string_lossy().as_ref() {
|
||||
"default" => Ok(Self::DefaultFormat),
|
||||
"relative" => Ok(Self::Relative),
|
||||
"iso" => Ok(Self::ISOFormat),
|
||||
"long-iso" => Ok(Self::LongISO),
|
||||
"full-iso" => Ok(Self::FullISO),
|
||||
_ => Err(OptionsError::BadArgument(&flags::TIME_STYLE, word.to_string()))
|
||||
_ => Err(OptionsError::BadArgument(&flags::TIME_STYLE, word))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue