Commit 67d0cac
Fix path resolution of
Instead of resolving `rustfmt` path from RUSTFMT or PATH envs, use the one
located in the same directory as `cargo-fmt`. So that `cargo-fmt` uses the
expected version of `rustfmt` to avoid accidental use of unrelated versions.
Signed-off-by: onur-ozkan <[email protected]>rustfmt in cargo-fmt
1 parent bf5f0ea commit 67d0cac
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
159 | 157 | | |
160 | 158 | | |
161 | 159 | | |
| |||
0 commit comments