Skip to content

Commit 12e427f

Browse files
committed
io: BufRead super trait of Read
1 parent 353483c commit 12e427f

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)