unwrap -> ?

This commit is contained in:
2020-01-19 00:50:26 +08:00
parent 08ec72f568
commit febcd6349a

View File

@@ -23,7 +23,7 @@ struct TestStruct {
fn main() -> Result<()> {
let serialized = serde_json::to_string(&TestStruct{
ty: TestEnum::TypeA,
}).unwrap();
})?;
println!("{}", serialized);