]> git.lizzy.rs Git - rust.git/blobdiff - book/src/continuous_integration/README.md
Book: Improve chapter on CI
[rust.git] / book / src / continuous_integration / README.md
index 9f1374193de39260409c7eaed5e669ccb8a505c1..e5c3673bde451f9c7b792c70c9f2b47227ce6282 100644 (file)
@@ -1,7 +1,8 @@
 # Continuous Integration
 
-It is recommended to run Clippy on CI, preferably with `-Dwarnings`, so that
-Clippy lints prevent CI from passing.
+It is recommended to run Clippy on CI with `-Dwarnings`, so that Clippy lints
+prevent CI from passing. To enforce errors on warnings on all `cargo` commands
+not just `cargo clippy`, you can set the env var `RUSTFLAGS="-Dwarnings"`.
 
 We recommend to use Clippy from the same toolchain, that you use for compiling
 your crate for maximum compatibility. E.g. if your crate is compiled with the