Skip to content

Commit

Permalink
suppress clippy warning
Browse files Browse the repository at this point in the history
as the code is more readable this way.
Applying the recommendation IMHO, obfuscates the code for little/no benefit
  • Loading branch information
jqnatividad committed Apr 3, 2024
1 parent 6c00119 commit 0fe8871
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/datefmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
} else {
default_tz
};
#[allow(clippy::useless_let_if_seq)] // more readable this way
let mut output_tz = if let Ok(tz) = args.flag_output_tz.parse::<Tz>() {
tz
} else if args.flag_output_tz.to_ascii_lowercase() == "local" {
Expand Down

0 comments on commit 0fe8871

Please sign in to comment.