Skip to content

Commit

Permalink
Stop using __Nonexhaustive for market type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed Aug 14, 2024
1 parent 82d742a commit ebcb19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ impl wasm_bindgen::convert::FromWasmAbi for MarketResourceType {
// try with IntershardResourceType
match IntershardResourceType::from_js_value(&s) {
Some(r) => Self::IntershardResource(r),
None => Self::Resource(ResourceType::__Nonexhaustive),
None => panic!("unmapped market resource"),
}
}
}
Expand Down

0 comments on commit ebcb19a

Please sign in to comment.