Skip to content

value_parser For Option<PathBuf> #5320

Answered by mikeyT42
mikeyT42 asked this question in Q&A
Discussion options

You must be logged in to vote

Well, I resolved this. I simply opted to remove the Option<PathBuf> from the return result and made it Result<PathBuf, String> and it runs perfectly fine. The value is still an option inside the BuildArgs struct.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@epage
Comment options

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