aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs1
-rw-r--r--src/metadata.rs8
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,
}
}
}