Skip to content

Commit

Permalink
Replace rustfmt-preview with stable rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Veetaha committed Sep 12, 2020
1 parent da6c788 commit d837ed1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ matrix:
- rust: stable
script:
- cargo test --all --locked
- rustup component add rustfmt-preview
- rustup component add rustfmt
- cargo fmt --all -- --check
env: RUST_BACKTRACE=1

Expand Down
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ To execute the unit tests, we will use the `test` feature included in `cargo`:
cargo test
```

`cargo test` will execute the unit tests included in the `tests` directory.
`cargo test` will execute the unit tests included in the `tests` directory.
If all the lights are green, you can then validate the manual tests.

### Manual tests

For complex issues, and solutions, we did not created unit tests yet.
For complex issues, and solutions, we did not created unit tests yet.
Otherwise, we have manual tests in order to check if everything is ok.

For example, to test if your code does not collides with the solution of the
[issue #83], you have to run those tests locally:

**1. Clone an existing template, without any git submodule, locally**

You can take one at the [Templates page].
You can take one at the [Templates page].
For example:

```sh
Expand Down Expand Up @@ -94,15 +94,15 @@ rustup override set stable
Install the most recent version of `rustfmt` using this command:

```sh
rustup component add rustfmt-preview --toolchain stable
rustup component add rustfmt --toolchain stable
```

**3. Running rustfmt**

To run `rustfmt`, use this command:

```sh
cargo +stable fmt
cargo fmt
```

[rustfmt]: https://github.com/rust-lang-nursery/rustfmt
Expand Down

0 comments on commit d837ed1

Please sign in to comment.