File tree 2 files changed +113
-222
lines changed
2 files changed +113
-222
lines changed Original file line number Diff line number Diff line change 23
23
//! [standard stream framing](https://capnproto.org/encoding.html#serialization-over-a-stream),
24
24
//! where each message is preceded by a segment table indicating the size of its segments.
25
25
26
- mod no_alloc_slice_segments ;
27
- pub use no_alloc_slice_segments :: { NoAllocBufferSegments , NoAllocSliceSegments } ;
26
+ mod no_alloc_buffer_segments ;
27
+ pub use no_alloc_buffer_segments :: { NoAllocBufferSegments , NoAllocSliceSegments } ;
28
28
29
29
#[ cfg( feature = "alloc" ) ]
30
30
use crate :: io:: { Read , Write } ;
@@ -95,7 +95,7 @@ pub fn read_message_from_flat_slice_no_alloc<'a>(
95
95
slice : & mut & ' a [ u8 ] ,
96
96
options : message:: ReaderOptions ,
97
97
) -> Result < message:: Reader < NoAllocSliceSegments < ' a > > > {
98
- let segments = NoAllocSliceSegments :: try_new ( slice, options) ?;
98
+ let segments = NoAllocSliceSegments :: from_slice ( slice, options) ?;
99
99
100
100
Ok ( message:: Reader :: new ( segments, options) )
101
101
}
You can’t perform that action at this time.
0 commit comments