X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=README.md;h=a2984d73641694b500415990e41c25b9b57fbeda;hb=bbbc973a842fc515f9b22d10d103bbf2d7827697;hp=856058e58b02c3e857e7bfacfe99048efc02f76a;hpb=b77b219280eb8e511f3ed28bf894ab09fdde1e03;p=rust.git diff --git a/README.md b/README.md index 856058e58b0..a2984d73641 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code. -[There are 363 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) +[There are over 350 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you: @@ -42,10 +42,8 @@ Table of contents: ## Usage -Since this is a tool for helping the developer of a library or application -write better code, it is recommended not to include Clippy as a hard dependency. -Options include using it as an optional dependency, as a cargo subcommand, or -as an included feature during build. These options are detailed below. +Below are instructions on how to use Clippy as a subcommand, compiled from source +or in Travis CI. ### As a cargo subcommand (`cargo clippy`) @@ -83,11 +81,11 @@ cargo clippy #### Automatically applying Clippy suggestions -Some Clippy lint suggestions can be automatically applied by `cargo fix`. +Clippy can automatically apply some lint suggestions. Note that this is still experimental and only supported on the nightly channel: ```terminal -cargo fix -Z unstable-options --clippy +cargo clippy --fix -Z unstable-options ``` ### Running Clippy from the command line without installing it