diff --git a/src/file.rs b/src/file.rs index a4b1e1b..c395739 100644 --- a/src/file.rs +++ b/src/file.rs @@ -87,9 +87,7 @@ impl Finder for FileSystem { } Ok(()) }); - if let Err(e) = file_return { - return Err(e); - } + let _ = file_return?; let res: Vec<_> = receiver.iter().collect(); let mut temp_table: Vec = vec![]; for (kind, supported_api_version, deprecated_api_version, name, path, k8_version) in res { diff --git a/src/utils.rs b/src/utils.rs index 1052d55..1c92351 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -10,7 +10,7 @@ use std::{fs::File, io::Write}; use tokio::task::JoinHandle; pub type ClusterOP = Vec>>>; -pub const K8_VERSIONS: [&str; 6] = ["1.16", "1.22", "1.25", "1.26", "1.27", "custom"]; +pub const K8_VERSIONS: [&str; 7] = ["1.16", "1.22", "1.25", "1.26", "1.27", "1.29", "custom"]; #[derive(Serialize, Deserialize, Default, Debug)] pub struct JsonDetails {