Skip to content

Commit 95605b9

Browse files
committed
Update to defmt 1.1
Added defmt::Format derive for AppCookie. Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
1 parent a3fa7fd commit 95605b9

3 files changed

Lines changed: 8 additions & 30 deletions

File tree

Cargo.lock

Lines changed: 6 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ argh = "0.1.12"
1313
async-io = "2.6"
1414
chrono = { version = "0.4", default-features = false }
1515
crc = "3.3"
16-
defmt = "0.3"
16+
defmt = "1"
1717
deku = { version = "0.20.3", default-features = false }
1818
embedded-io-adapters = { version = "0.6", features = ["std", "futures-03"] }
1919
embedded-io-async = "0.6"

mctp-estack/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ struct Flow {
165165

166166
/// An opaque identifier that applications can use to associate responses.
167167
#[derive(Debug, Eq, PartialEq, Clone, Copy, Hash, PartialOrd, Ord)]
168+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
168169
pub struct AppCookie(pub usize);
169170

170171
/// Low level MCTP stack.

0 commit comments

Comments
 (0)