Repair annotation reading
This commit is contained in:
parent
0d1522d869
commit
fddb910175
|
@ -467,7 +467,11 @@ impl<'de, 'src, S: BinarySource<'de>> Reader<'de> for PackedReader<'de, 'src, S>
|
||||||
}
|
}
|
||||||
|
|
||||||
fn open_annotation(&mut self) -> ReaderResult<()> {
|
fn open_annotation(&mut self) -> ReaderResult<()> {
|
||||||
self.next_compound(Tag::Annotation, ExpectedKind::Annotation)
|
if let Tag::Annotation = Tag::try_from(self.peek_noeof()?)? {
|
||||||
|
Ok(self.skip()?)
|
||||||
|
} else {
|
||||||
|
Err(error::Error::Expected(ExpectedKind::Annotation))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn close_annotation(&mut self) -> ReaderResult<()> {
|
fn close_annotation(&mut self) -> ReaderResult<()> {
|
||||||
|
|
Loading…
Reference in New Issue