Skip to content

Commit

Permalink
Merge pull request #29 from shamilsan/master
Browse files Browse the repository at this point in the history
Ignore unknown `Category` instead of returning an error
  • Loading branch information
mdsteele authored Aug 1, 2024
2 parents 74f9881 + 3383e0a commit aa64fb3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/internal/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,11 @@ impl<F: Read + Seek> Package<F> {
let category = category_value
.as_str()
.unwrap()
.parse::<Category>()?;
builder = builder.category(category);
.parse::<Category>()
.ok();
if let Some(category) = category {
builder = builder.category(category);
}
}
let enum_values = value_refs[8].to_value(&string_pool);
if !enum_values.is_null() {
Expand Down

0 comments on commit aa64fb3

Please sign in to comment.