Skip to content

[Rust] return Error instead of panic when deserialize/serialize failed #2706

@chaokunyang

Description

@chaokunyang

Feature Request

Currently fory rust use expect in many places, if the expect doesn't succed, the program will panic. We should return use Result/Error as return value instead if panic directly. And we can shortpath the codeflow by ?

This is necessary, especially when deserialization can come from untrusted source.

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions