Skip to content

Commit

Permalink
Allow clippy issue for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklan committed Sep 26, 2023
1 parent 5f744bd commit e6f3d75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/command/command_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ macro_rules! command {
format!("{}:\n {:?}", "ALIASES".yellow(), $aliases);
}
let clap = start_clap($name, $about, &ALIASES_STR, $trailing_var_arg);
#[allow(clippy::redundant_closure_call)]
let extra = $extra_args(clap);
$cmd_name {
aliases: $aliases,
Expand Down
1 change: 1 addition & 0 deletions src/config/kubefile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ impl AuthProviderGcpConfig {
fn parse_expiry(expiry_str: &str) -> Result<DateTime<Local>, ClickError> {
// Somehow google sometimes puts a date like "2018-03-31 22:22:01" in the config
// and other times like "2018-04-01T05:57:31Z", so we have to try both. wtf google.
#[allow(deprecated)]
if let Ok(expiry) = DateTime::parse_from_rfc3339(expiry_str) {
Ok(expiry.with_timezone(&Local))
} else if let Ok(expiry) = Local.datetime_from_str(expiry_str, "%Y-%m-%d %H:%M:%S") {
Expand Down

0 comments on commit e6f3d75

Please sign in to comment.