diff options
author | sitkevij <sitkevij@gmail.com> | 2020-04-14 22:16:25 -0700 |
---|---|---|
committer | sitkevij <sitkevij@gmail.com> | 2020-04-14 22:16:25 -0700 |
commit | a7764eb831c3ec8b0afb6009f2c2fea5aa936bb4 (patch) | |
tree | 0bf0ebd76b623d0cc68acab62d57e9b84b8c7ca4 | |
parent | f0653e932eab3093d2c2087a298bdb1a03c6d34a (diff) |
add clippy command to Makefile
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | src/main.rs | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -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) |