Skip to content

Add/remove Some() or Ok() or Err() wrapper #18383

@adamchalmers

Description

@adamchalmers

I frequently find myself refactoring code and needing to either add or remove a Some() wrapper from an expression. Similar need for Ok() and Err(). It'd be great if Rust Analyzer had an action to add or remove these wrappers.

I can approximate this somewhat with macros of key sequences in my editor, but it'd be neat if RA could do it :)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions