File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 34
34
with :
35
35
toolchain : ${{ matrix.toolchain }}
36
36
target : ${{ matrix.target }}
37
+ components : rustfmt, clippy
37
38
39
+ - run : cargo fmt --check
40
+ - run : cargo clippy --target=${{ matrix.target }} -- -Dwarnings
38
41
- run : cargo build --target=${{ matrix.target }}
39
42
- run : cargo doc --target=${{ matrix.target }}
43
+ env :
44
+ RUSTDOCFLAGS : -Dwarnings
40
45
# Temporary test non-target only.
41
46
# TODO: Test in emulator or something.
42
47
- run : cargo test
Original file line number Diff line number Diff line change @@ -20,10 +20,13 @@ impl fmt::Debug for Config {
20
20
. field ( "buf_id" , & self . buf_id )
21
21
. field ( "filter" , & self . filter )
22
22
. field ( "tag" , & self . tag )
23
- . field ( "custom_format" , match & self . custom_format {
24
- Some ( _) => & "Some(_)" ,
25
- None => & "None" ,
26
- } )
23
+ . field (
24
+ "custom_format" ,
25
+ match & self . custom_format {
26
+ Some ( _) => & "Some(_)" ,
27
+ None => & "None" ,
28
+ } ,
29
+ )
27
30
. finish ( )
28
31
}
29
32
}
You can’t perform that action at this time.
0 commit comments