File tree 5 files changed +11
-12
lines changed
5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 10
10
- uses : actions/checkout@v1
11
11
- uses : actions-rs/toolchain@v1
12
12
with :
13
- toolchain : nightly-2019-10-13
13
+ toolchain : nightly-2019-11-06
14
14
override : true
15
15
- run : rustup component add clippy
16
16
- run : cargo fetch --verbose
23
23
- uses : actions/checkout@v1
24
24
- uses : actions-rs/toolchain@v1
25
25
with :
26
- toolchain : nightly-2019-10-13
26
+ toolchain : nightly-2019-11-06
27
27
override : true
28
28
- run : rustup component add rustfmt
29
29
- run : cargo fmt -- --check
Original file line number Diff line number Diff line change @@ -135,32 +135,32 @@ You can create a block by sending a transaction through [JSON-RPC](https://githu
135
135
Make sure you run `rustfmt` before creating a PR to the repo. You need to install the nightly-2018-12-06 version of `rustfmt`.
136
136
137
137
```sh
138
- rustup toolchain install nightly-2019-10-13
139
- rustup component add rustfmt --toolchain nightly-2019-10-13
138
+ rustup toolchain install nightly-2019-11-06
139
+ rustup component add rustfmt --toolchain nightly-2019-11-06
140
140
```
141
141
142
142
To run `rustfmt`,
143
143
144
144
```sh
145
- cargo +nightly-2019-10-13 fmt
145
+ cargo +nightly-2019-11-06 fmt
146
146
```
147
147
148
148
## Linting
149
149
150
150
You should run `clippy` also. This is a lint tool for rust. It suggests more efficient/readable code.
151
151
You can see [the clippy document](https://rust-lang.github.io/rust-clippy/master/index.html) for more information.
152
- You need to install the nightly-2019-10-13 version of `clippy`.
152
+ You need to install the nightly-2019-11-06 version of `clippy`.
153
153
154
154
### Install
155
155
```sh
156
- rustup toolchain install nightly-2019-10-13
157
- rustup component add clippy --toolchain nightly-2019-10-13
156
+ rustup toolchain install nightly-2019-11-06
157
+ rustup component add clippy --toolchain nightly-2019-11-06
158
158
```
159
159
160
160
### Run
161
161
162
162
```sh
163
- cargo +nightly-2019-10-13 clippy --all --all-targets
163
+ cargo +nightly-2019-11-06 clippy --all --all-targets
164
164
```
165
165
166
166
## Testing
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ impl Client {
230
230
231
231
pub fn extension_versions ( & self ) -> Vec < ( String , Vec < u64 > ) > {
232
232
let extensions = self . extensions . read ( ) ;
233
- extensions. iter ( ) . map ( |( name, extension) | ( name. to_string ( ) , extension. versions . clone ( ) ) ) . collect ( )
233
+ extensions. iter ( ) . map ( |( name, extension) | ( ( * name) . to_string ( ) , extension. versions . clone ( ) ) ) . collect ( )
234
234
}
235
235
236
236
pub fn on_node_removed ( & self , id : & NodeId ) {
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ impl<Stream: TryRead + TryWrite + PeerAddr + Shutdown> TryStream<Stream> {
124
124
Ok ( None )
125
125
}
126
126
127
- fn read_len ( & mut self ) -> Result < Option < ( Vec < u8 > ) > > {
127
+ fn read_len ( & mut self ) -> Result < Option < Vec < u8 > > > {
128
128
debug_assert_eq ! ( None , self . read) ;
129
129
let mut bytes: Vec < u8 > = vec ! [ 0 ] ;
130
130
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ reorder_modules = true
34
34
# reorder_impl_items = false
35
35
# report_todo = "Never"
36
36
# report_fixme = "Never"
37
- # skip_children = false
38
37
space_after_colon = true
39
38
space_before_colon = false
40
39
struct_field_align_threshold = 0
You can’t perform that action at this time.
0 commit comments