From f81544afe32300afdd10acb576770e4af6e0d8cb Mon Sep 17 00:00:00 2001 From: Jonathan Li <30177086+MonliH@users.noreply.github.com> Date: Sat, 10 Oct 2020 11:58:15 -0400 Subject: [PATCH 1/2] Document RUSTFMT env var behaviour --- src/doc/src/reference/environment-variables.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/doc/src/reference/environment-variables.md b/src/doc/src/reference/environment-variables.md index a630a5f58a5..135e4d08981 100644 --- a/src/doc/src/reference/environment-variables.md +++ b/src/doc/src/reference/environment-variables.md @@ -49,6 +49,8 @@ system: * `TERM` — If this is set to `dumb`, it disables the progress bar. * `BROWSER` — The web browser to execute to open documentation with [`cargo doc`]'s' `--open` flag. +* `RUSTFMT` — Instead of running `rustfmt`, Cargo will execute this specified + `rustfmt` instance instead. #### Configuration environment variables From f6abaa6e5c46b2046752d265da994ee02afc0ef3 Mon Sep 17 00:00:00 2001 From: Jonathan Li <30177086+MonliH@users.noreply.github.com> Date: Sun, 11 Oct 2020 13:14:31 -0400 Subject: [PATCH 2/2] Revise docs --- src/doc/src/reference/environment-variables.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/doc/src/reference/environment-variables.md b/src/doc/src/reference/environment-variables.md index 135e4d08981..eec0d0aac04 100644 --- a/src/doc/src/reference/environment-variables.md +++ b/src/doc/src/reference/environment-variables.md @@ -49,7 +49,8 @@ system: * `TERM` — If this is set to `dumb`, it disables the progress bar. * `BROWSER` — The web browser to execute to open documentation with [`cargo doc`]'s' `--open` flag. -* `RUSTFMT` — Instead of running `rustfmt`, Cargo will execute this specified +* `RUSTFMT` — Instead of running `rustfmt`, + [`cargo fmt`](https://github.com/rust-lang/rustfmt) will execute this specified `rustfmt` instance instead. #### Configuration environment variables