|
let iso_obj: Value = serde_json::from_str(&iso_data).unwrap(); |
Hi.
As I see, there are a lot of unwrap() methods all around the code. For example above. These calls will panic in case of Err results of unwrapped operations. If this behaviour isn't intended I suggest to use something like unwrap_or(), ok_or() or something else of option API.
lakgves/src/main.rs
Line 57 in cdb1e38
Hi.
As I see, there are a lot of
unwrap()methods all around the code. For example above. These calls will panic in case ofErrresults of unwrapped operations. If this behaviour isn't intended I suggest to use something likeunwrap_or(),ok_or()or something else of option API.