File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,15 +115,6 @@ impl Frame {
115115 }
116116 }
117117
118- /// Extend the present frame with a read-only reference the the data
119- /// and return the resulting struct.
120- pub ( super ) fn as_bit_iter < ' a > (
121- & self ,
122- data : & ' a [ u8 ] ,
123- ) -> BitIter < core:: iter:: Copied < core:: slice:: Iter < ' a , u8 > > > {
124- BitIter :: byte_slice_window ( data, self . start , self . start + self . len )
125- }
126-
127118 /// Like [`as_bit_iter`] but starts from the current cursor position rather than the frame start.
128119 pub ( super ) fn as_bit_iter_from_cursor < ' a > (
129120 & self ,
Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ impl BitMachine {
432432 let out_frame = self . write . last_mut ( ) . unwrap ( ) ;
433433 out_frame. reset_cursor ( ) ;
434434 let value = Value :: from_padded_bits (
435- & mut out_frame. as_bit_iter ( & self . data ) ,
435+ & mut out_frame. as_bit_iter_from_cursor ( & self . data ) ,
436436 & program. arrow ( ) . target ,
437437 )
438438 . expect ( "Decode value of output frame" ) ;
You can’t perform that action at this time.
0 commit comments