From 12e427f54571b1284548b75dd3992d58a5ecfd4c Mon Sep 17 00:00:00 2001 From: Victorien Elvinger Date: Wed, 27 Aug 2025 15:57:13 +0200 Subject: [PATCH] io: `BufRead` super trait of `Read` --- embedded-io/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embedded-io/src/lib.rs b/embedded-io/src/lib.rs index 9e2e528a..1341d1aa 100644 --- a/embedded-io/src/lib.rs +++ b/embedded-io/src/lib.rs @@ -355,7 +355,7 @@ pub trait Read: ErrorType { /// Blocking buffered reader. /// /// This trait is the `embedded-io` 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 blocks until at least one byte is available.