Skip to content

Why does our try_opt macro require &&? #172

Closed
@nrc

Description

@nrc

If foo wants a &str and bar: Option<String>, I would expect foo(&try_opt!(bar) to work, but we need foo(&&try_opt!(bar). Which is odd looking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions