Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ We have several packages which live in this repository. Changes are tracked sepa
* [#955] Allow using the `defmt/alloc` feature on bare metal ESP32-S2
* [#972] Fix logic bug in env_filter
* [#1007] `defmt`: impl `Format` for `core::fmt::Error`
* [#983] Add `Format` implementation for core::num::Wrapping<T>

### [defmt-v1.0.1] (2025-04-01)

Expand Down Expand Up @@ -971,6 +972,7 @@ Initial release
[#1006]: https://github.com/knurling-rs/defmt/pull/1006
[#990]: https://github.com/knurling-rs/defmt/pull/990
[#986]: https://github.com/knurling-rs/defmt/pull/986
[#983]: https://github.com/knurling-rs/defmt/pull/983
[#974]: https://github.com/knurling-rs/defmt/pull/974
[#972]: https://github.com/knurling-rs/defmt/pull/972
[#966]: https://github.com/knurling-rs/defmt/pull/966
Expand Down
8 changes: 7 additions & 1 deletion defmt/src/impls/core_/num.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::num;
use core::num::{self, Wrapping};

use super::*;

Expand Down Expand Up @@ -30,3 +30,9 @@ impl Format for num::TryFromIntError {
crate::write!(fmt, "TryFromIntError(())");
}
}

impl<T: Format> Format for Wrapping<T> {
fn format(&self, fmt: Formatter) {
self.0.format(fmt);
}
}