File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -403,10 +403,10 @@ impl<T: Readable> MaybeReadable for T {
403
403
///
404
404
/// This is not exported to bindings users as manual TLV building is not currently supported in bindings
405
405
pub struct RequiredWrapper < T > ( pub Option < T > ) ;
406
- impl < T : Readable > Readable for RequiredWrapper < T > {
406
+ impl < T : LengthReadable > LengthReadable for RequiredWrapper < T > {
407
407
#[ inline]
408
- fn read < R : Read > ( reader : & mut R ) -> Result < Self , DecodeError > {
409
- Ok ( Self ( Some ( Readable :: read ( reader) ?) ) )
408
+ fn read_from_fixed_length_buffer < R : LengthRead > ( reader : & mut R ) -> Result < Self , DecodeError > {
409
+ Ok ( Self ( Some ( LengthReadable :: read_from_fixed_length_buffer ( reader) ?) ) )
410
410
}
411
411
}
412
412
impl < A , T : ReadableArgs < A > > ReadableArgs < A > for RequiredWrapper < T > {
You can’t perform that action at this time.
0 commit comments