Skip to content

Commit

Permalink
fix: fixed error handling in object parsing (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
pamburus authored May 5, 2024
1 parent 1e0b883 commit 5b975a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [".", "crate/encstr"]
[workspace.package]
repository = "https://github.com/pamburus/hl"
authors = ["Pavel Ivanov <[email protected]>"]
version = "0.29.2-alpha.1"
version = "0.29.2-alpha.2"
edition = "2021"
license = "MIT"

Expand Down
2 changes: 1 addition & 1 deletion src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ where
false => Vec::new(),
true => Vec::with_capacity(count - RAW_RECORD_FIELDS_CAPACITY),
};
while let Some(Some(key)) = access.next_key::<&'a str>().ok() {
while let Some(key) = access.next_key::<&'a str>()? {
let value: &RV = access.next_value()?;
match head.push((key, value.into())) {
Ok(_) => {}
Expand Down

0 comments on commit 5b975a7

Please sign in to comment.