aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/src/pubsub
diff options
context:
space:
mode:
authordvdsk <[email protected]>2024-06-06 23:19:07 +0200
committerdvdsk <[email protected]>2024-06-06 23:19:07 +0200
commit871fe3a5493961e81ec41ddc8f000f32b0549e71 (patch)
tree292f86c49b26c9382d54c39e977a9448919c6f29 /embassy-sync/src/pubsub
parent5f9bc6def7ea8698a6ce45d8e12e1d1bd8cce876 (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-sync/src/pubsub')
-rw-r--r--embassy-sync/src/pubsub/mod.rs2
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))]
439pub enum Error { 439pub 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