From 2d56ee1dc43abb125414cfcfa7d9dddd24a0c58d Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Sun, 22 Jul 2018 13:39:08 +0200 Subject: [PATCH] [doc] upgrade fmt installation method --- CONTRIBUTING.md | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1ebb397b..135e29d0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. - If you're using rust 1.24 or greater : - ```bash # Install rustfmt through rustup - rustup component add rustfmt + rustup component add rustfmt-preview --toolchain nightly # Run rustfmt 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`. `clippy` is a linting tool scanning your code to find common mistakes or bad code. -- GitLab