Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 6b7b28f

Browse files
committed
add Read trait bound to Take
1 parent 1f500f1 commit 6b7b28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/literacy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub trait Read {
2727
/// The error type returned in Result
2828
type Error;
2929
/// The type to implement limited reads
30-
type Take;
30+
type Take: Read;
3131
/// see [std::io::Read::read]
3232
fn read(&mut self, buf: &mut [u8]) -> ::core::result::Result<usize, Self::Error>;
3333
/// see [std::io::Read::read_exact]

0 commit comments

Comments
 (0)