Skip to content

Commit a80a285

Browse files
authored
Merge pull request #690 from Conaclos/buf-read-super-trait-of-read
io: make `BufRead` a super trait of `Read`
2 parents 353483c + 12e427f commit a80a285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embedded-io/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ pub trait Read: ErrorType {
355355
/// Blocking buffered reader.
356356
///
357357
/// This trait is the `embedded-io` equivalent of [`std::io::BufRead`].
358-
pub trait BufRead: ErrorType {
358+
pub trait BufRead: Read {
359359
/// Return the contents of the internal buffer, filling it with more data from the inner reader if it is empty.
360360
///
361361
/// If no bytes are currently available to read, this function blocks until at least one byte is available.

0 commit comments

Comments
 (0)