@@ -19,11 +19,11 @@ use serde::forward_to_deserialize_any;
1919#[ cfg( feature = "arbitrary_precision" ) ]
2020use crate :: number:: NumberDeserializer ;
2121
22- pub use crate :: read:: { BufferedIoRead , Read , SliceRead , StrRead } ;
22+ pub use crate :: read:: { Read , SliceRead , StrRead } ;
2323
2424#[ cfg( feature = "std" ) ]
2525#[ cfg_attr( docsrs, doc( cfg( feature = "std" ) ) ) ]
26- pub use crate :: read:: IoRead ;
26+ pub use crate :: read:: { BufferedIoRead , IoRead } ;
2727
2828//////////////////////////////////////////////////////////////////////////////
2929
@@ -2729,7 +2729,7 @@ where
27292729/// parsing from a very slow I/O source or need to control the buffer
27302730/// size (e.g., to use a larger 8KB buffer) or its allocation, you can
27312731/// construct a [`read::BufferedIoRead`] manually with your own buffer
2732- /// and pass it to the generic [`from_trait`] function .
2732+ /// and pass it to the Deserializer .
27332733///
27342734/// ### Features
27352735///
@@ -2776,6 +2776,7 @@ where
27762776 R : crate :: io:: Read ,
27772777 T : de:: DeserializeOwned ,
27782778{
2779- let b_rdr: read:: BufferedIoRead < R > = read:: BufferedIoRead :: new ( rdr, [ 0 ; _] ) ;
2779+ let b_rdr: read:: BufferedIoRead < R > =
2780+ read:: BufferedIoRead :: new ( rdr, [ 0 ; read:: AVERAGE_BUF_CAPACITY ] ) ;
27802781 from_trait ( b_rdr)
27812782}
0 commit comments