Skip to content

Are nom::Err and nom::error necessary? #1257

@alper

Description

@alper

I had a hell of a time figuring out the right way to create an error. The solution finally was:

assert_eq!(
        check_eye_color("  ecl:amb"),
        Err(nom::Err::Error(nom::error::Error::new(
            "  ecl:amb",
            nom::error::ErrorKind::Tag
        )))
    );

Is it necessary to have this stuff spread out across two modules?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions