Document more use cases

This commit is contained in:
David Tolnay 2016-09-30 07:32:28 -07:00
parent 861b1e11ff
commit 6b7a8ebec0
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -49,10 +49,18 @@ fn main() {
}
```
Or to expand a particular test target:
To expand a particular test target:
`$ cargo expand --test test_something`
To expand with `rustfmt` different from the one in `$PATH`:
`$ RUSTFMT=/path/to/rustfmt cargo expand`
To expand without `rustfmt` even though it is available in `$PATH`:
`$ RUSTFMT= cargo expand`
## License
Licensed under either of