File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
crates/wasmi/src/engine/translator/func Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -296,8 +296,8 @@ impl OpEncoder {
296296 /// # Note
297297 ///
298298 /// The [`OpEncoder`] will be empty after this operation.
299- pub fn drain ( & mut self ) -> InstrEncoderIter < ' _ > {
300- InstrEncoderIter {
299+ pub fn drain ( & mut self ) -> OpEncoderIter < ' _ > {
300+ OpEncoderIter {
301301 iter : self . instrs . drain ( ..) ,
302302 }
303303 }
@@ -310,12 +310,12 @@ impl OpEncoder {
310310
311311/// Iterator yielding all [`Op`]s of the [`OpEncoder`].
312312#[ derive( Debug ) ]
313- pub struct InstrEncoderIter < ' a > {
313+ pub struct OpEncoderIter < ' a > {
314314 /// The underlying iterator.
315315 iter : vec:: Drain < ' a , Op > ,
316316}
317317
318- impl < ' a > Iterator for InstrEncoderIter < ' a > {
318+ impl < ' a > Iterator for OpEncoderIter < ' a > {
319319 type Item = Op ;
320320
321321 fn next ( & mut self ) -> Option < Self :: Item > {
@@ -327,7 +327,7 @@ impl<'a> Iterator for InstrEncoderIter<'a> {
327327 }
328328}
329329
330- impl ExactSizeIterator for InstrEncoderIter < ' _ > {
330+ impl ExactSizeIterator for OpEncoderIter < ' _ > {
331331 fn len ( & self ) -> usize {
332332 self . iter . len ( )
333333 }
You can’t perform that action at this time.
0 commit comments