diff options
| author | dvdsk <[email protected]> | 2024-06-06 23:19:07 +0200 |
|---|---|---|
| committer | dvdsk <[email protected]> | 2024-06-06 23:19:07 +0200 |
| commit | 871fe3a5493961e81ec41ddc8f000f32b0549e71 (patch) | |
| tree | 292f86c49b26c9382d54c39e977a9448919c6f29 /embassy-stm32/src/sai | |
| parent | 5f9bc6def7ea8698a6ce45d8e12e1d1bd8cce876 (diff) | |
Add Clone and Copy to Error types
None of them are `non-exaustative`, they are all small enough to be copy
(I estimate none are larger than 4 bytes).
Diffstat (limited to 'embassy-stm32/src/sai')
| -rw-r--r-- | embassy-stm32/src/sai/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/sai/mod.rs b/embassy-stm32/src/sai/mod.rs index 3faecdc33..87bde12eb 100644 --- a/embassy-stm32/src/sai/mod.rs +++ b/embassy-stm32/src/sai/mod.rs | |||
| @@ -15,7 +15,7 @@ use crate::rcc::{self, RccPeripheral}; | |||
| 15 | use crate::{peripherals, Peripheral}; | 15 | use crate::{peripherals, Peripheral}; |
| 16 | 16 | ||
| 17 | /// SAI error | 17 | /// SAI error |
| 18 | #[derive(Debug, PartialEq, Eq)] | 18 | #[derive(Debug, PartialEq, Eq, Clone, Copy)] |
| 19 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 19 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 20 | pub enum Error { | 20 | pub enum Error { |
| 21 | /// `write` called on a SAI in receive mode. | 21 | /// `write` called on a SAI in receive mode. |
