Skip to content

Allow custom error type to be supplied #2

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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