Skip to content
Snippets Groups Projects
Commit 2d56ee1d authored by Éloïs's avatar Éloïs
Browse files

[doc] upgrade fmt installation method

parent 1942552a
Branches
Tags
No related merge requests found
...@@ -19,29 +19,13 @@ Please note we have a specific workflow, please follow it in all your interactio ...@@ -19,29 +19,13 @@ Please note we have a specific workflow, please follow it in all your interactio
`rustfmt` is a tool applying Rust idiomatic code style to your files automatically. `rustfmt` is a tool applying Rust idiomatic code style to your files automatically.
If you're using rust 1.24 or greater :
```bash ```bash
# Install rustfmt through rustup # Install rustfmt through rustup
rustup component add rustfmt rustup component add rustfmt-preview --toolchain nightly
# Run rustfmt # Run rustfmt
cargo fmt cargo fmt
``` ```
If you're using rust 1.23 or lower :
```bash
# Install nightly toolchain
rustup install nightly
# Install rustfmt through cargo
cargo +nightly install rustfmt
# Run rustfmt
cargo +nightly fmt
```
> If you switch from 1.23 to 1.24, uninstall `rustfmt` from cargo and install it back with
> `rustup`
- Use `clippy`. - Use `clippy`.
`clippy` is a linting tool scanning your code to find common mistakes or bad code. `clippy` is a linting tool scanning your code to find common mistakes or bad code.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment