Skip to content

Allow custom error type to be suppliedΒ #2

@changhe3

Description

@changhe3

I want to use this in conjunction with structopt, whose derive macro expands to this:

.validator(|s| {
                        ::std::str::FromStr::from_str(s.as_str())
                            .map(|_: Eval| ())
                            .map_err(|e| e.to_string())
                    })

Obviously this won't work as the default error type () doesn't implement Display.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions