Skip to content

Commit

Permalink
annotate String<64>
Browse files Browse the repository at this point in the history
  • Loading branch information
vhdirk committed Nov 5, 2023
1 parent 3a425f8 commit 1a97e93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ default-features = false
version = "1.0.100"

[dependencies.defmt]
version = "0.3.0"
version = "0.3.5"
default-features = false
optional = true

Expand Down
4 changes: 3 additions & 1 deletion src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ pub enum Error {

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

impl serde::de::StdError for Error {}
Expand Down

0 comments on commit 1a97e93

Please sign in to comment.