diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-12-19 12:41:25 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-19 12:41:25 +0100 |
| commit | 14efaf71d76ad0af569522ee0c4082d473fdede7 (patch) | |
| tree | ee9f4352e70815e97e424bb534c1c096242b9af0 /embassy-rp/src/uart/mod.rs | |
| parent | 3214021ed5ae17b96ac006c0f460e222502e411d (diff) | |
| parent | 62ed44f99af9e33d689c8308149f8f992176895f (diff) | |
Merge pull request #4745 from embassy-rs/io07
Update to embedded-io 0.7
Diffstat (limited to 'embassy-rp/src/uart/mod.rs')
| -rw-r--r-- | embassy-rp/src/uart/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/embassy-rp/src/uart/mod.rs b/embassy-rp/src/uart/mod.rs index b7b569dd5..f53b2f88e 100644 --- a/embassy-rp/src/uart/mod.rs +++ b/embassy-rp/src/uart/mod.rs | |||
| @@ -118,6 +118,14 @@ pub enum Error { | |||
| 118 | Framing, | 118 | Framing, |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | impl core::fmt::Display for Error { | ||
| 122 | fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { | ||
| 123 | core::fmt::Debug::fmt(self, f) | ||
| 124 | } | ||
| 125 | } | ||
| 126 | |||
| 127 | impl core::error::Error for Error {} | ||
| 128 | |||
| 121 | /// Read To Break error | 129 | /// Read To Break error |
| 122 | #[derive(Debug, Eq, PartialEq, Copy, Clone)] | 130 | #[derive(Debug, Eq, PartialEq, Copy, Clone)] |
| 123 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 131 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
