Skip to content

Commit 1a97e93

Browse files
committed
annotate String<64>
1 parent 3a425f8 commit 1a97e93

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ default-features = false
2424
version = "1.0.100"
2525

2626
[dependencies.defmt]
27-
version = "0.3.0"
27+
version = "0.3.5"
2828
default-features = false
2929
optional = true
3030

src/de/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ pub enum Error {
7575

7676
/// Error with a custom message that was preserved.
7777
#[cfg(feature = "custom-error-messages")]
78-
CustomErrorWithMessage(heapless::String<64>),
78+
CustomErrorWithMessage(
79+
#[cfg_attr(feature = "defmt", defmt(Debug2Format))] heapless::String<64>,
80+
),
7981
}
8082

8183
impl serde::de::StdError for Error {}

0 commit comments

Comments
 (0)