aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/src/channel.rs
diff options
context:
space:
mode:
authorScott Mabin <[email protected]>2023-11-18 14:31:09 +0000
committerScott Mabin <[email protected]>2023-11-18 14:31:09 +0000
commit270ec324b0f4bdf400043bbb4023a32c6c7d94d4 (patch)
tree70bd8a7208910ed691c655fdd671873e1d7485a4 /embassy-sync/src/channel.rs
parentca0d02933b2551e89f0862493be217d1fb9097f1 (diff)
Reduce duplication, fix tests
Diffstat (limited to 'embassy-sync/src/channel.rs')
-rw-r--r--embassy-sync/src/channel.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-sync/src/channel.rs b/embassy-sync/src/channel.rs
index a512e0c41..aa267471c 100644
--- a/embassy-sync/src/channel.rs
+++ b/embassy-sync/src/channel.rs
@@ -321,7 +321,7 @@ impl<'ch, T> Future for DynamicSendFuture<'ch, T> {
321 321
322impl<'ch, T> Unpin for DynamicSendFuture<'ch, T> {} 322impl<'ch, T> Unpin for DynamicSendFuture<'ch, T> {}
323 323
324trait DynamicChannel<T> { 324pub(crate) trait DynamicChannel<T> {
325 fn try_send_with_context(&self, message: T, cx: Option<&mut Context<'_>>) -> Result<(), TrySendError<T>>; 325 fn try_send_with_context(&self, message: T, cx: Option<&mut Context<'_>>) -> Result<(), TrySendError<T>>;
326 326
327 fn try_receive_with_context(&self, cx: Option<&mut Context<'_>>) -> Result<T, TryReceiveError>; 327 fn try_receive_with_context(&self, cx: Option<&mut Context<'_>>) -> Result<T, TryReceiveError>;