Skip to content

Commit fe5a09e

Browse files
committed
Bug fix: force BigEndianRead trait to be sized.
1 parent 435ffe5 commit fe5a09e

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)