File tree 2 files changed +25
-1
lines changed 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : rustfmt
2
+ on : [push, pull_request]
3
+ jobs :
4
+
5
+ rustfmt :
6
+ name : Format
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Checkout sources
10
+ uses : actions/checkout@v2
11
+
12
+ - name : Install nightly toolchain with rustfmt available
13
+ uses : actions-rs/toolchain@v1
14
+ with :
15
+ profile : minimal
16
+ toolchain : stable
17
+ override : true
18
+ components : rustfmt
19
+
20
+ - name : Run cargo fmt
21
+ uses : actions-rs/cargo@v1
22
+ with :
23
+ command : fmt
24
+ args : --all -- --check
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ where
273
273
{
274
274
Utf8 ( Utf8LossyDecoder < Sink , A > ) ,
275
275
#[ cfg( feature = "encoding" ) ]
276
- Encoding ( Box < encoding:: RawDecoder > , Sink ) ,
276
+ Encoding ( Box < dyn encoding:: RawDecoder > , Sink ) ,
277
277
#[ cfg( feature = "encoding_rs" ) ]
278
278
EncodingRs ( encoding_rs:: Decoder , Sink ) ,
279
279
}
You can’t perform that action at this time.
0 commit comments