diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-06-09 09:47:26 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-09 09:47:26 +0000 |
| commit | 3e2b015dc477023887ae9b0e5e3adf5deb7af362 (patch) | |
| tree | 2456f8e7382309c835d56c8fd76c9dbb1d5329b2 /embassy-sync | |
| parent | e5495b51b43f71cdc489e92f4deb0cbc0e27e6aa (diff) | |
| parent | 871fe3a5493961e81ec41ddc8f000f32b0549e71 (diff) | |
Merge pull request #3054 from dvdsk/clonable-errors
Add Clone and Copy to Error types
Diffstat (limited to 'embassy-sync')
| -rw-r--r-- | embassy-sync/src/pubsub/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-sync/src/pubsub/mod.rs b/embassy-sync/src/pubsub/mod.rs index 66c9b0017..a97eb7d5b 100644 --- a/embassy-sync/src/pubsub/mod.rs +++ b/embassy-sync/src/pubsub/mod.rs | |||
| @@ -434,7 +434,7 @@ impl<T: Clone, const CAP: usize, const SUBS: usize, const PUBS: usize> PubSubSta | |||
| 434 | } | 434 | } |
| 435 | 435 | ||
| 436 | /// Error type for the [PubSubChannel] | 436 | /// Error type for the [PubSubChannel] |
| 437 | #[derive(Debug, PartialEq, Eq, Clone)] | 437 | #[derive(Debug, PartialEq, Eq, Clone, Copy)] |
| 438 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 438 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 439 | pub enum Error { | 439 | pub enum Error { |
| 440 | /// All subscriber slots are used. To add another subscriber, first another subscriber must be dropped or | 440 | /// All subscriber slots are used. To add another subscriber, first another subscriber must be dropped or |
