From 0e91a6b7185b36bf9fcc6485f2b78a7a6821cf14 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Sat, 22 Dec 2018 10:28:31 +0100 Subject: [PATCH 1/2] Clippy is available as non-preview. --- src/appendix-04-useful-development-tools.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/appendix-04-useful-development-tools.md b/src/appendix-04-useful-development-tools.md index 85ef4a121..8d6065ae5 100644 --- a/src/appendix-04-useful-development-tools.md +++ b/src/appendix-04-useful-development-tools.md @@ -100,14 +100,10 @@ different editions of Rust. Editions are covered in Appendix E. The `clippy` tool is a collection of lints to catch common mistakes and improve your Rust code. -The `clippy` tool is not yet at the quality of a version 1.0 release, but a -preview is available for you to use in the meantime. Please give it a try and -let us know how it goes! - To install `clippy`: ```text -$ rustup component add clippy-preview +$ rustup component add clippy ``` To take any Cargo project and run clippy’s lints on it: From 49e02f43b477b01b7a6ccccd2ecb8dc1be949123 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Wed, 30 Jan 2019 08:17:33 +0100 Subject: [PATCH 2/2] Update Clippy URLs --- src/appendix-04-useful-development-tools.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/appendix-04-useful-development-tools.md b/src/appendix-04-useful-development-tools.md index 8d6065ae5..5c58ddf10 100644 --- a/src/appendix-04-useful-development-tools.md +++ b/src/appendix-04-useful-development-tools.md @@ -26,7 +26,7 @@ Running this command will reformat all of the Rust code in the current crate. This should only change the code style, not the code semantics. For more information on `rustfmt`, see [its documentation][rustfmt]. -[rustfmt]: https://github.com/rust-lang-nursery/rustfmt +[rustfmt]: https://github.com/rust-lang/rustfmt ## Fix Up Your Code with `rustfix` @@ -135,7 +135,7 @@ error: approximate value of `f{32, 64}::consts::PI` found. Consider using it dir | ^^^^^^ | = note: #[deny(clippy::approx_constant)] on by default - = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#approx_constant + = help: for further information visit https://rust-lang.github.io/rust-clippy/v0.0.212/index.html#approx_constant ``` This lets you know that Rust has this constant defined more precisely, and that @@ -154,7 +154,7 @@ fn main() { For more information on `clippy`, see [its documentation][clippy]. -[clippy]: https://github.com/rust-lang-nursery/rust-clippy +[clippy]: https://github.com/rust-lang/rust-clippy ## IDE Integration Using the Rust Language Server @@ -178,4 +178,4 @@ gain abilities such as autocompletion, jump to definition, and inline errors. For more information on the `rls`, see [its documentation][rls]. -[rls]: https://github.com/rust-lang-nursery/rls +[rls]: https://github.com/rust-lang/rls