X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=README.md;h=a4928e17e6a947a3bbcb02a3e43ae9575ddc6cf8;hb=37555f8f73baf82b7761db56e7440c79a956b9ec;hp=65e0864be904ce36f19edd5d0c1f0d646f96e887;hpb=400d40b4ceb15baf92225ebffd1b4a385b950ab1;p=rust.git diff --git a/README.md b/README.md index 65e0864be90..a4928e17e6a 100644 --- a/README.md +++ b/README.md @@ -98,17 +98,6 @@ If you want to run Clippy **only** on the given crate, use the `--no-deps` optio cargo clippy -p example -- --no-deps ``` -### Running Clippy from the command line without installing it - -To have cargo compile your crate with Clippy without Clippy installation -in your code, you can use: - -```terminal -cargo run --bin cargo-clippy --manifest-path=path_to_clippys_Cargo.toml -``` - -*Note:* Be sure that Clippy was compiled with the same version of rustc that cargo invokes here! - ### Travis CI You can add Clippy to Travis CI in the same way you use it locally: @@ -196,6 +185,7 @@ the lint(s) you are interested in: ```terminal cargo clippy -- -A clippy::all -W clippy::useless_format -W clippy::... ``` +Note that if you've run clippy before, this may only take effect after you've modified a file or ran `cargo clean`. ### Specifying the minimum supported Rust version