Skip to content

clippy result_large_err #302

Closed
Closed
@extrawurst

Description

@extrawurst

When composing my error type of sub error types it quickly happens that it will trigger this clippy lint: result_large_err.

This often makes me either ignore/allow that lint or type that error as String and write a manual From impl to convert. I was wondering if there is a way to have this crate create this error conversion for me, such as that I create a specific enum value for this error in my Error type and give it a macro marking it as a simple to_string() conversion from a given Error SubType?

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