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