From ce6ea58de0991df4e3144ccdd5659018ea5d4ead Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Thu, 10 Sep 2015 07:01:28 +0530 Subject: [PATCH] add cargo clippy link --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fdd341efa45f..3e048c7ed075 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ A collection of lints that give helpful tips to newbies and catch oversights. +[Jump to usage instructions](#usage) + ##Lints There are 56 lints included in this crate: @@ -77,6 +79,8 @@ Add in your `Cargo.toml`: clippy = "*" ``` +You may also use [`cargo clippy`](https://github.com/arcnmx/cargo-clippy), a custom cargo subcommand that runs clippy on a given project. + Sample `main.rs`: ```rust #![feature(plugin)] @@ -93,7 +97,7 @@ fn main(){ } ``` -Produce this warning: +Produces this warning: ``` src/main.rs:8:5: 11:6 warning: you seem to be trying to use match for destructuring a single type. Consider using `if let`, #[warn(single_match)] on by default src/main.rs:8 match x {