Skip to content

The error returned by Parser::parse is not std::error::Error #329

Answered by epage
Kinrany asked this question in Q&A
Discussion options

You must be logged in to vote

ParseError is still a "light weight" error, borrowing all of its content. We could allow explicitly converting to owning the information and implement the trait, but that will be a bit of a crude process.

For lightweight examples, like in our docs, we just do .to_string(). For toml_edit, I convert to a custom error type.

sorry, kept getting distracted from replying

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
4 replies
@Kinrany
Comment options

@epage
Comment options

@dacid44
Comment options

@epage
Comment options

Answer selected by Kinrany
Comment options

You must be logged in to vote
7 replies
@epage
Comment options

@baoyachi
Comment options

@Kinrany
Comment options

@Kinrany
Comment options

@epage
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants