https://github.com/PacktPublishing/Rust-Web-Programming-2nd-Edition/blob/9b90563dcdb5e7e546c99b441b9d8f2616cc7c89/chapter04/integrating_serialization_structs_into_our_application_code/web_app/src/views/to_do/get.rs#LL16C9-L17C50 This bit of code is correct on here but in the book (the learning.oreilly.com version) it is: ``` let status = TaskStatus::from_string(&value.as_str().unwrap()).to_string(); ``` Which will not compile.
https://github.com/PacktPublishing/Rust-Web-Programming-2nd-Edition/blob/9b90563dcdb5e7e546c99b441b9d8f2616cc7c89/chapter04/integrating_serialization_structs_into_our_application_code/web_app/src/views/to_do/get.rs#LL16C9-L17C50
This bit of code is correct on here but in the book (the learning.oreilly.com version) it is:
Which will not compile.