From 987f260543aecd0d2645ba7e1adba77d5b7a72e6 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Wed, 19 Dec 2018 06:13:43 +0200 Subject: [PATCH] Update README local run command to specify syspath --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c5d32e4a89..13fb8225e59 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ 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 +RUSTFLAGS=--sysroot=`rustc --print sysroot` cargo run --bin cargo-clippy --manifest-path=path_to_clippys_Cargo.toml ``` *[Note](https://github.com/rust-lang/rust-clippy/wiki#a-word-of-warning):*