Skip to content

Unexpected behavior with Ok(None) #119

@HuKaiLang

Description

@HuKaiLang

Version: 0.5.10

I have code like this in Vue3 project:

Ok(None).unwrap().isSome()

I expect the above code to return false, however it returns true.

I would like to know if there is an explanation for this behaviour ?

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