From e6f3d75a468109b6070b15f9340ef725c405d4a0 Mon Sep 17 00:00:00 2001 From: Nick Lanham Date: Tue, 26 Sep 2023 11:24:26 -0700 Subject: [PATCH] Allow clippy issue for now --- Cargo.lock | 2 +- src/command/command_def.rs | 1 + src/config/kubefile.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 9873c65..e9d44f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -214,7 +214,7 @@ dependencies = [ [[package]] name = "click" -version = "0.6.2" +version = "0.6.3" dependencies = [ "atomicwrites", "base64 0.21.4", diff --git a/src/command/command_def.rs b/src/command/command_def.rs index 5120b3e..207ebb7 100644 --- a/src/command/command_def.rs +++ b/src/command/command_def.rs @@ -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, diff --git a/src/config/kubefile.rs b/src/config/kubefile.rs index ccc9ecd..2ebb506 100644 --- a/src/config/kubefile.rs +++ b/src/config/kubefile.rs @@ -333,6 +333,7 @@ impl AuthProviderGcpConfig { fn parse_expiry(expiry_str: &str) -> Result, 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") {