From 45e4f3aac79bb4f34952ff70a15aaed36bcd811c Mon Sep 17 00:00:00 2001 From: Guido Date: Wed, 7 Feb 2018 19:24:38 +0100 Subject: [PATCH 1/2] Simplify recommended command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e4f0f3547ceb..46b069eb6616 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ To have cargo compile your crate with clippy without needing `#![plugin(clippy)] in your code, you can use: ```terminal -cargo rustc -- -L /path/to/clippy_so/dir/ -Z extra-plugins=clippy +cargo-clippy ``` *[Note](https://github.com/rust-lang-nursery/rust-clippy/wiki#a-word-of-warning):* From b52f46d1d17301d75fe212d4b95bfd7fdf4d9fb8 Mon Sep 17 00:00:00 2001 From: Guido Date: Thu, 8 Feb 2018 12:37:56 +0100 Subject: [PATCH 2/2] Change command to run clippy without installation --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 46b069eb6616..ecf00f2fdbad 100644 --- a/README.md +++ b/README.md @@ -85,13 +85,13 @@ and add to `main.rs` or `lib.rs`: #![cfg_attr(test, plugin(clippy))] ``` -### Running clippy from the command line without installing +### Running clippy from the command line without installing it -To have cargo compile your crate with clippy without needing `#![plugin(clippy)]` +To have cargo compile your crate with clippy without clippy installation and without needing `#![plugin(clippy)]` in your code, you can use: ```terminal -cargo-clippy +cargo run --bin cargo-clippy --manifest-path=path_to_clippys_Cargo.toml ``` *[Note](https://github.com/rust-lang-nursery/rust-clippy/wiki#a-word-of-warning):*