unwrap -> ?
This commit is contained in:
@@ -23,7 +23,7 @@ struct TestStruct {
|
||||
fn main() -> Result<()> {
|
||||
let serialized = serde_json::to_string(&TestStruct{
|
||||
ty: TestEnum::TypeA,
|
||||
}).unwrap();
|
||||
})?;
|
||||
|
||||
println!("{}", serialized);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user