diff options
Diffstat (limited to 'embassy-sync/src/pipe.rs')
| -rw-r--r-- | embassy-sync/src/pipe.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-sync/src/pipe.rs b/embassy-sync/src/pipe.rs index 6d624979a..d6c21299a 100644 --- a/embassy-sync/src/pipe.rs +++ b/embassy-sync/src/pipe.rs | |||
| @@ -7,8 +7,8 @@ use core::ops::Range; | |||
| 7 | use core::pin::Pin; | 7 | use core::pin::Pin; |
| 8 | use core::task::{Context, Poll}; | 8 | use core::task::{Context, Poll}; |
| 9 | 9 | ||
| 10 | use crate::blocking_mutex::raw::RawMutex; | ||
| 11 | use crate::blocking_mutex::Mutex; | 10 | use crate::blocking_mutex::Mutex; |
| 11 | use crate::blocking_mutex::raw::RawMutex; | ||
| 12 | use crate::ring_buffer::RingBuffer; | 12 | use crate::ring_buffer::RingBuffer; |
| 13 | use crate::waitqueue::WakerRegistration; | 13 | use crate::waitqueue::WakerRegistration; |
| 14 | 14 | ||
| @@ -393,7 +393,7 @@ where | |||
| 393 | /// Attempt to immediately write some bytes to the pipe. | 393 | /// Attempt to immediately write some bytes to the pipe. |
| 394 | /// | 394 | /// |
| 395 | /// This method will either write a nonzero amount of bytes to the pipe immediately, | 395 | /// This method will either write a nonzero amount of bytes to the pipe immediately, |
| 396 | /// or return an error if the pipe is empty. See [`write`](Self::write) for a variant | 396 | /// or return an error if the pipe is full. See [`write`](Self::write) for a variant |
| 397 | /// that waits instead of returning an error. | 397 | /// that waits instead of returning an error. |
| 398 | pub fn try_write(&self, buf: &[u8]) -> Result<usize, TryWriteError> { | 398 | pub fn try_write(&self, buf: &[u8]) -> Result<usize, TryWriteError> { |
| 399 | self.try_write_with_context(None, buf) | 399 | self.try_write_with_context(None, buf) |
