mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 06:02:36 +00:00
refactor: remove unnecessary reference
`String` can be compared with `&str`
This commit is contained in:
parent
5ade7b247f
commit
853fcb6fbf
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ pub fn build() -> App<'static, 'static> {
|
|||
fn validate_date_argument(arg: String) -> Result<(), String> {
|
||||
if arg.starts_with('+') {
|
||||
validate_time_format(&arg)
|
||||
} else if &arg == "date" || &arg == "relative" {
|
||||
} else if arg == "date" || arg == "relative" {
|
||||
Result::Ok(())
|
||||
} else {
|
||||
Result::Err("possible values: date, relative, +date-time-format".to_owned())
|
||||
|
|
Loading…
Reference in a new issue