diff options
author | Doug Goldstein <cardoe@cardoe.com> | 2019-10-10 13:08:40 -0500 |
---|---|---|
committer | Doug Goldstein <cardoe@cardoe.com> | 2019-10-10 13:08:40 -0500 |
commit | 587ca27b30a9050ce6b78a0fab599d0c86ccaf1a (patch) | |
tree | 3c8f054adf6776d21c874228617f705cac2141bf | |
parent | upgrade to Cargo 0.37 (diff) | |
download | cargo-ebuild-update-cargo.tar.gz cargo-ebuild-update-cargo.tar.bz2 cargo-ebuild-update-cargo.zip |
clean up cargo clippy warningsupdate-cargo
-rw-r--r-- | src/main.rs | 1 | ||||
-rw-r--r-- | src/metadata.rs | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index f27c238..710fd49 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,6 @@ extern crate cargo; extern crate cargo_ebuild; -#[macro_use] extern crate structopt; use cargo::util::CliError; diff --git a/src/metadata.rs b/src/metadata.rs index da708a5..19d4e0f 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -39,7 +39,7 @@ impl EbuildConfig { .unwrap_or_else(|| package.name().to_string()); // package homepage - let homepage = metadata.homepage.as_ref().cloned().unwrap_or( + let homepage = metadata.homepage.as_ref().cloned().unwrap_or_else(|| metadata .repository .as_ref() @@ -55,9 +55,9 @@ impl EbuildConfig { EbuildConfig { inherit: None, - homepage: homepage, + homepage, description: desc, - license: license, + license, restrict: None, slot: None, keywords: None, @@ -66,7 +66,7 @@ impl EbuildConfig { rdepend: None, pdepend: None, depend_is_rdepend: true, - crates: crates, + crates, } } } |