Skip to content

Incorrect code in book  #5

Description

@mikefedak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions