Skip to content

Commit c748bdb

Browse files
committed
impl Format for core::fmt::Error
1 parent 90f09e0 commit c748bdb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

defmt/src/impls/core_/fmt.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
use super::*;
2+
3+
impl Format for core::fmt::Error {
4+
fn format(&self, fmt: Formatter) {
5+
crate::write!(fmt, "fmt::Error")
6+
}
7+
}

defmt/src/impls/core_/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
mod alloc_;
99
mod array;
1010
mod cell;
11+
mod fmt;
1112
#[cfg(feature = "ip_in_core")]
1213
mod net;
1314
mod num;

0 commit comments

Comments
 (0)