File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ pub trait Read: ErrorType {
82
82
/// Async buffered reader.
83
83
///
84
84
/// This trait is the `embedded-io-async` equivalent of [`std::io::BufRead`].
85
- pub trait BufRead : ErrorType {
85
+ pub trait BufRead : Read {
86
86
/// Return the contents of the internal buffer, filling it with more data from the inner reader if it is empty.
87
87
///
88
88
/// If no bytes are currently available to read, this function waits until at least one byte is available.
Original file line number Diff line number Diff line change @@ -528,7 +528,7 @@ pub trait Seek: ErrorType {
528
528
///
529
529
/// This allows using a [`Read`] or [`BufRead`] in a nonblocking fashion, i.e. trying to read
530
530
/// only when it is ready.
531
- pub trait ReadReady : ErrorType {
531
+ pub trait ReadReady : Read {
532
532
/// Get whether the reader is ready for immediately reading.
533
533
///
534
534
/// This usually means that there is either some bytes have been received and are buffered and ready to be read,
@@ -542,7 +542,7 @@ pub trait ReadReady: ErrorType {
542
542
///
543
543
/// This allows using a [`Write`] in a nonblocking fashion, i.e. trying to write
544
544
/// only when it is ready.
545
- pub trait WriteReady : ErrorType {
545
+ pub trait WriteReady : Write {
546
546
/// Get whether the writer is ready for immediately writing.
547
547
///
548
548
/// This usually means that there is free space in the internal transmit buffer.
You can’t perform that action at this time.
0 commit comments