Also think it provides a good example of why I like Rust's type system. Just 1 line to read a file from disk, convert it to a structured type, and handle errors individually at each step. let path = "./file.json"; let manifest: Manifest = fs::read_to_string(path)?.parse()?;
Made an issue to add str::FromStr to webmanifest. Final thing I could think of adding to the crate. https://github.com/chooxide/webmanifest/issues/3 …
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.