Skip to content

Result types from into_*? #84

@max-sixty

Description

@max-sixty

Thanks for the great crate! I've just replaced a bunch of methods with enum-as-inner: https://github.com/max-sixty/prql/pull/146. I did have one question:

The Result from .into_* is different from most Result types — it seems to be Result<OutType, InType>>. Is this intentional? It's not the only place that doesn't conform to Result<OutType, Err>, so possibly this being surprising is because of my lack of rust understanding?

Currently I'm doing .map_err a lot, rather than just ?.

Thank you!

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