You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
In some cases we offer these as diagnostic quick fixes:
let x:Option<i32> = 42;// Wrap in Somelet x:i32 = Some(42);// no Unwrap availablelet x:Result<i32,()> = 42;// Wrap in Oklet x:i32 = Ok(42);// No Unwrap available
I frequently find myself refactoring code and needing to either add or remove a
Some()
wrapper from an expression. Similar need forOk()
andErr()
. 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 :)
The text was updated successfully, but these errors were encountered: