Skip to content

validate with error with module path fails #186

@vic1707

Description

@vic1707

I don't know if the issue name is right or understandable sorry.

I found out that

#[nutype(validate(with = fs::exists, error = io::Error))]
struct File(PathBuf);

causes an error at the io::.
I think the macro should support that.

Current workaround

use std::io::Error as IoError; 🤷

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