Skip to content

Commit 5f29317

Browse files
committed
Merge pull request #35 from 3Hren/pr/rfc-1214
Force `BigEndianRead` trait to be sized.
2 parents 435ffe5 + fe5a09e commit 5f29317

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ pub fn read_nfix<R>(rd: &mut R) -> Result<i8, FixedValueReadError>
379379
}
380380
}
381381

382-
trait BigEndianRead {
382+
trait BigEndianRead: Sized {
383383
fn read<R: Read>(rd: &mut R) -> Result<Self, byteorder::Error>;
384384
}
385385

0 commit comments

Comments
 (0)