summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsitkevij <sitkevij@gmail.com>2020-04-14 22:16:25 -0700
committersitkevij <sitkevij@gmail.com>2020-04-14 22:16:25 -0700
commita7764eb831c3ec8b0afb6009f2c2fea5aa936bb4 (patch)
tree0bf0ebd76b623d0cc68acab62d57e9b84b8c7ca4
parentf0653e932eab3093d2c2087a298bdb1a03c6d34a (diff)
add clippy command to Makefile
-rw-r--r--Makefile3
-rw-r--r--src/main.rs3
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1f77742..69fd7a6 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,9 @@ install: release debug test
install-force: clean release debug test
cargo install --path . --force
+clippy:
+ cargo clippy
+
docker:
docker build -t sitkevij/stretch-slim:$(BINARY)-0.2.0 .
diff --git a/src/main.rs b/src/main.rs
index 9ba3885..6cf9b16 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -10,8 +10,7 @@ fn main() {
"{}\n{}",
env!("CARGO_PKG_DESCRIPTION"),
env!("CARGO_PKG_HOMEPAGE")
- )
- .to_string();
+ );
let app = App::new(env!("CARGO_PKG_NAME"))
.version(env!("CARGO_PKG_VERSION"))
.about(desc)