Skip to content

allow specific unwraps with unwrap_in_result #15439

@michaelbeaumont

Description

@michaelbeaumont

Description

Currently it doesn't seem possible to use allow/expect attributes to allow a single unwrap/expect call in a function that returns Result. We can only ignore all unwrap/expect calls in a -> Result function by putting the attribute on the function. This makes it very easy to accidentally add new calls when only one call in particular was meant to be allowed. It should be possible to put the attribute on the specific call.

Version


Additional Labels

No response

Metadata

Metadata

Assignees

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