Skip to content

Commit e21e4dd

Browse files
Junha Yangmajecty
authored andcommitted
Upgrade clippy and rustfmt
1 parent 4d3e074 commit e21e4dd

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/cargo-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fetch-depth: 1
1313
- uses: actions-rs/toolchain@v1
1414
with:
15-
toolchain: nightly-2020-05-05
15+
toolchain: nightly-2020-07-27
1616
components: clippy
1717
profile: minimal
1818
override: true
@@ -28,7 +28,7 @@ jobs:
2828
fetch-depth: 1
2929
- uses: actions-rs/toolchain@v1
3030
with:
31-
toolchain: nightly-2020-05-05
31+
toolchain: nightly-2020-07-27
3232
components: rustfmt
3333
profile: minimal
3434
override: true

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,35 +85,35 @@ You can create a block by sending a transaction through [JSON-RPC](https://githu
8585
8686
## Formatting
8787
88-
Make sure you run `rustfmt` before creating a PR to the repo. You need to install the nightly-2020-05-05 version of `rustfmt`.
88+
Make sure you run `rustfmt` before creating a PR to the repo. You need to install the nightly-2020-07-27 version of `rustfmt`.
8989
9090
```sh
91-
rustup toolchain install nightly-2020-05-05
92-
rustup component add rustfmt --toolchain nightly-2020-05-05
91+
rustup toolchain install nightly-2020-07-27
92+
rustup component add rustfmt --toolchain nightly-2020-07-27
9393
```
9494
9595
To run `rustfmt`,
9696
9797
```sh
98-
cargo +nightly-2020-05-05 fmt
98+
cargo +nightly-2020-07-27 fmt
9999
```
100100
101101
## Linting
102102
103103
You should run `clippy` also. This is a lint tool for rust. It suggests more efficient/readable code.
104104
You can see [the clippy document](https://rust-lang.github.io/rust-clippy/master/index.html) for more information.
105-
You need to install the nightly-2020-05-05 version of `clippy`.
105+
You need to install the nightly-2020-07-27 version of `clippy`.
106106
107107
### Install
108108
```sh
109-
rustup toolchain install nightly-2020-05-05
110-
rustup component add clippy --toolchain nightly-2020-05-05
109+
rustup toolchain install nightly-2020-07-27
110+
rustup component add clippy --toolchain nightly-2020-07-27
111111
```
112112
113113
### Run
114114
115115
```sh
116-
cargo +nightly-2020-05-05 clippy --all --all-targets
116+
cargo +nightly-2020-07-27 clippy --all --all-targets
117117
```
118118
119119
## Testing

0 commit comments

Comments
 (0)