mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-04 08:31:07 +00:00
Fix compiling bench_struct
This commit is contained in:
1 parent
7bd4c6963b
commit
a212ef11a9
1 file changed
+1
-1
@@ -535,7 +535,7 @@ mod deserializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn end(&mut self) -> Result<(), Error> {
|
fn end(&mut self) -> Result<(), Error> {
|
||||||
if self.state == 1 {
|
if self.state == 3 {
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
Err(Error::SyntaxError)
|
Err(Error::SyntaxError)
|
||||||
|
|||||||
Reference in new issue
Block a user