Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion embedded-io-async/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub trait Read: ErrorType {
/// Async buffered reader.
///
/// This trait is the `embedded-io-async` equivalent of [`std::io::BufRead`].
pub trait BufRead: ErrorType {
pub trait BufRead: Read {
/// Return the contents of the internal buffer, filling it with more data from the inner reader if it is empty.
///
/// If no bytes are currently available to read, this function waits until at least one byte is available.
Expand Down
4 changes: 2 additions & 2 deletions embedded-io/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ pub trait Seek: ErrorType {
///
/// This allows using a [`Read`] or [`BufRead`] in a nonblocking fashion, i.e. trying to read
/// only when it is ready.
pub trait ReadReady: ErrorType {
pub trait ReadReady: Read {
/// Get whether the reader is ready for immediately reading.
///
/// This usually means that there is either some bytes have been received and are buffered and ready to be read,
Expand All @@ -542,7 +542,7 @@ pub trait ReadReady: ErrorType {
///
/// This allows using a [`Write`] in a nonblocking fashion, i.e. trying to write
/// only when it is ready.
pub trait WriteReady: ErrorType {
pub trait WriteReady: Write {
/// Get whether the writer is ready for immediately writing.
///
/// This usually means that there is free space in the internal transmit buffer.
Expand Down