fix clippy and udeps errors

This commit is contained in:
Nikolai Rodionov 2023-01-16 20:06:03 +01:00
parent 6d17814a63
commit d1ea6090ed
3 changed files with 1 additions and 9 deletions

7
Cargo.lock generated
View File

@ -32,12 +32,6 @@ dependencies = [
"generic-array", "generic-array",
] ]
[[package]]
name = "build_html"
version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa8ffb62af7b0911893e2d6126891b2a018e387078fa5d855cb42d0d90d88075"
[[package]] [[package]]
name = "bytecount" name = "bytecount"
version = "0.6.3" version = "0.6.3"
@ -54,7 +48,6 @@ checksum = "e9f73505338f7d905b19d18738976aae232eb46b8efc15554ffc56deb5d9ebe4"
name = "cdh" name = "cdh"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"build_html",
"clap", "clap",
"clap_complete", "clap_complete",
"env_logger", "env_logger",

View File

@ -14,7 +14,6 @@ version-compare = "0.1.0"
clap = { version = "4.1.1", features = ["derive", "env"] } clap = { version = "4.1.1", features = ["derive", "env"] }
serde_yaml = "0.9.16" serde_yaml = "0.9.16"
tabled = "0.10.0" tabled = "0.10.0"
build_html = "2.1.0"
handlebars = "4.3.1" handlebars = "4.3.1"
clap_complete = "4.0.6" clap_complete = "4.0.6"

View File

@ -122,7 +122,7 @@ fn main() {
} }
fn check_chart(result: &mut Vec<ExecResult>, local_chart: &types::HelmChart) -> Result<()> { fn check_chart(result: &mut Vec<ExecResult>, local_chart: &types::HelmChart) -> Result<()> {
if local_chart.clone().name.is_some() { if local_chart.name.is_some() {
let version = local_chart.version.clone().unwrap(); let version = local_chart.version.clone().unwrap();
let chart = local_chart.name.clone().unwrap(); let chart = local_chart.name.clone().unwrap();
return match version.is_empty() { return match version.is_empty() {