File tree 5 files changed +28
-56
lines changed
5 files changed +28
-56
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
2
push :
3
- branches : [ staging, trying, master ]
3
+ branches : [ master ]
4
4
pull_request :
5
+ branches : [ master ]
5
6
6
7
name : Continuous integration
7
8
@@ -30,19 +31,32 @@ jobs:
30
31
TARGET : x86_64-unknown-linux-gnu
31
32
32
33
steps :
33
- - uses : actions/checkout@v2
34
- - uses : actions-rs/toolchain@v1
34
+ - uses : actions/checkout@v4
35
+
36
+ - uses : dtolnay/rust-toolchain@stable
35
37
with :
36
- profile : minimal
37
38
toolchain : ${{ matrix.rust }}
38
39
target : ${{ matrix.TARGET }}
39
- override : true
40
- - uses : actions-rs/cargo@v1
41
- with :
42
- command : build
43
- args : --target=${{ matrix.TARGET }}
44
- - uses : actions-rs/cargo@v1
40
+
41
+ - run : cargo build --target=${{ matrix.TARGET }}
42
+
43
+ - run : cargo test --target=${{ matrix.TARGET }} --all-features
45
44
if : ${{ contains(matrix.TARGET, 'x86_64') }}
45
+
46
+ clippy :
47
+ runs-on : ubuntu-latest
48
+ steps :
49
+ - uses : actions/checkout@v4
50
+ - uses : dtolnay/rust-toolchain@stable
46
51
with :
47
- command : test
48
- args : --target=${{ matrix.TARGET }} --all-features
52
+ components : clippy
53
+
54
+ - run : cargo clippy
55
+
56
+ fmt :
57
+ name : Rustfmt
58
+ runs-on : ubuntu-latest
59
+ steps :
60
+ - uses : actions/checkout@v4
61
+ - uses : dtolnay/rust-toolchain@stable
62
+ - run : cargo fmt --all -- --check
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
12
12
- Support for optional package ` defmt ` which allows for easy conversion for
13
13
error types when using tools like ` probe-rs ` for logging over debuggers.
14
14
- Implement ` Serializer::collect_str `
15
+ - Derive ` Serialize ` for ` de::Error ` and ` ser::Error `
15
16
16
17
### Changed
17
18
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ use core::mem::MaybeUninit;
4
4
use core:: { fmt, str} ;
5
5
6
6
use serde:: ser;
7
- use serde:: Serialize ;
8
7
use serde:: ser:: SerializeStruct as _;
8
+ use serde:: Serialize ;
9
9
10
10
#[ cfg( feature = "heapless" ) ]
11
11
use heapless:: { String , Vec } ;
You can’t perform that action at this time.
0 commit comments