From 5f9fb22307908e1d00b6f256a11aa7a6cc4d3781 Mon Sep 17 00:00:00 2001 From: RojjaCebolla <62170514+RojjaCebolla@users.noreply.github.com> Date: Sat, 18 Dec 2021 03:26:23 -0500 Subject: [PATCH] Clippy and fmt seem to be installed by default If this is true, install instructions are no longer needed. --- book/src/chapter_1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/chapter_1.md b/book/src/chapter_1.md index fe37b016..f9d8867c 100644 --- a/book/src/chapter_1.md +++ b/book/src/chapter_1.md @@ -112,9 +112,9 @@ You may find the following `cargo` features handy: Cargo also supports *extensions* - that is, plugins that make it do even more. There are some that you may find particularly useful: -* Cargo can reformat all your source code to look like standard Rust from the Rust manuals. You need to type `rustup component add rustfmt` *once* to install the tool. After that's done, you can type `cargo fmt` to format your code at any time. +* Cargo can reformat all your source code to look like standard Rust from the Rust manuals. You can type `cargo fmt` to format your code at any time. * If you'd like to work with the `mdbook` format - used for [this book](https://github.com/thebracket/rustrogueliketutorial)! - cargo can help with that, too. Just once, you need to run `cargo install mdbook` to add the tools to your system. After that, `mdbook build` will build a book project, `mdbook init` will make a new one, and `mdbook serve` will give you a local webserver to view your work! You can learn all about `mdbook` [on their documentation page](https://rust-lang-nursery.github.io/mdBook/cli/index.html). -* Cargo can also integrate with a "linter" - called `Clippy`. Clippy is a little pedantic (just like his Microsoft Office namesake!). Just the once, run `rustup component add clippy`. You can now type `cargo clippy` at any time to see suggestions for what may be wrong with your code! +* Cargo can also integrate with a "linter" - called `Clippy`. Clippy is a little pedantic (just like his Microsoft Office namesake!). You can type `cargo clippy` at any time to see suggestions for what may be wrong with your code! ### Making a new project