From 8dde4e5806869a0113042e9d1fb12a45ff55db7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 7 Aug 2019 16:24:14 +0200 Subject: [PATCH 1/2] README: mention that cargo fix has experimental support for applying some clippy lint suggestions via "cargo fix -Z unstable-options --clippy" --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 705966efafd..a4a194e5add 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,15 @@ Now you can run Clippy by invoking the following command: cargo clippy ``` +#### Automatically applying clippy suggestions + +Some Clippy lint suggestions can be automatically applied by `cargo fix`. +Note that this is still experimental and only supported on the nightly channel: + +```terminal +cargo fix -Z unstable-options --clippy +``` + ### Running Clippy from the command line without installing it To have cargo compile your crate with Clippy without Clippy installation From 39cdea6df47265c69f9b3aefa24eb37b14697c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 7 Aug 2019 21:07:35 +0200 Subject: [PATCH 2/2] Update README.md (fix typo) Co-Authored-By: Philipp Hansch --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a4a194e5add..15648b21023 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Now you can run Clippy by invoking the following command: cargo clippy ``` -#### Automatically applying clippy suggestions +#### Automatically applying Clippy suggestions Some Clippy lint suggestions can be automatically applied by `cargo fix`. Note that this is still experimental and only supported on the nightly channel: