File tree Expand file tree Collapse file tree 4 files changed +13
-5
lines changed
Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1414 - uses : dtolnay/rust-toolchain@stable
1515 with :
1616 components : clippy
17- - run : cargo clippy --all-features -- --deny=warnings
17+ - run : cargo clippy --workspace --exclude=embedded-io-adapters --all-features -- --deny=warnings
18+ - run : cargo clippy --package=embedded-io-adapters --all-features -- --deny=warnings
Original file line number Diff line number Diff line change 1515 with :
1616 toolchain : nightly-2024-07-26
1717 # tokio/net required to workaround https://github.com/tokio-rs/tokio/issues/6165
18- - run : RUSTDOCFLAGS="--deny=warnings --cfg=docsrs" cargo doc --all-features --features tokio/net
18+ - run : RUSTDOCFLAGS="--deny=warnings --cfg=docsrs" cargo doc --workspace --exclude=embedded-io-adapters --all-features --features tokio/net
19+ - run : RUSTDOCFLAGS="--deny=warnings --cfg=docsrs" cargo doc --package=embedded-io-adapters --all-features --features tokio/net
Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ jobs:
1717 - uses : actions/checkout@v4
1818 - uses : dtolnay/rust-toolchain@stable
1919 - run : cargo test --workspace
20-
20+
2121 test-all-features :
2222 runs-on : ubuntu-latest
2323 steps :
2424 - uses : actions/checkout@v4
2525 - uses : dtolnay/rust-toolchain@stable
26- - run : cargo test --workspace --all-features
26+ - run : cargo test --workspace --exclude=embedded-io-adapters --all-features
27+ - run : cargo test --package=embedded-io-adapters --all-features
2728
2829 build-nostd :
2930 runs-on : ubuntu-latest
4344 steps :
4445 - uses : actions/checkout@v4
454646- - run : cargo test --workspace --all-features
47+ - run : cargo test --workspace --exclude=embedded-io-adapters --all-features
48+ - run : cargo test --package=embedded-io-adapters --all-features
Original file line number Diff line number Diff line change @@ -218,6 +218,10 @@ impl Error for std::io::Error {
218218/// which might be different types.
219219pub trait ErrorType {
220220 /// Error type of all the IO operations on this type.
221+ #[ cfg( feature = "defmt" ) ]
222+ type Error : Error + defmt:: Format ;
223+ /// Error type of all the IO operations on this type.
224+ #[ cfg( not( feature = "defmt" ) ) ]
221225 type Error : Error ;
222226}
223227
You can’t perform that action at this time.
0 commit comments