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/tsc | |
| 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/tsc')
| -rw-r--r-- | embassy-stm32/src/tsc/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/tsc/mod.rs b/embassy-stm32/src/tsc/mod.rs index 045d6317c..8cab3a24c 100644 --- a/embassy-stm32/src/tsc/mod.rs +++ b/embassy-stm32/src/tsc/mod.rs | |||
| @@ -83,7 +83,7 @@ const TSC_NUM_GROUPS: u32 = 7; | |||
| 83 | const TSC_NUM_GROUPS: u32 = 8; | 83 | const TSC_NUM_GROUPS: u32 = 8; |
| 84 | 84 | ||
| 85 | /// Error type defined for TSC | 85 | /// Error type defined for TSC |
| 86 | #[derive(Debug)] | 86 | #[derive(Debug, Clone, Copy)] |
| 87 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 87 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 88 | pub enum Error { | 88 | pub enum Error { |
| 89 | /// Test error for TSC | 89 | /// Test error for TSC |
