From 1ab43df8076e27a1c7b905ecb6c76960048e0a2f Mon Sep 17 00:00:00 2001
From: Ignotus Peverell <igno.peverell@protonmail.com>
Date: Tue, 6 Mar 2018 00:53:08 +0000
Subject: [PATCH] Update install instructions with rustfmt-preview

---
 doc/style.md | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/doc/style.md b/doc/style.md
index 4e16ff3ef..4fc17d750 100644
--- a/doc/style.md
+++ b/doc/style.md
@@ -7,16 +7,11 @@ Grin uses [rustfmt](https://github.com/rust-lang-nursery/rustfmt) to maintain co
 Note: we assume Rust has been installed via [Rustup](https://www.rustup.rs/).
 See [build docs](./build.md) for more info.
 
-rustfmt itself requires the nightly toolchain -
-
 ```
+rustup component add rustfmt-preview
 rustup update
-rustup install nightly
-rustup run nightly cargo install rustfmt-nightly
 ```
 
-If you still get problems with running `cargo +nightly fmt`, you might need to also do `rustup component add rustfmt-preview` (see [more info](https://github.com/rust-lang-nursery/rustfmt/issues/2304))
-
 ## Install git pre-commit hook
 
 There is a basic git [pre-commit](../.hooks/pre-commit) hook in the repo.