-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Description
It would be useful if rust-analyzer had an assist that allows quickly changing an as x cast to an x::from-style cast (when the appropriate From impl exists). This would save a bunch of typing when refactoring casts to be more precise (since as _ will wrap).
Additionally, it could also offer a conversion to .try_into().unwrap() when there is only a TryFrom/TryInto impl but no From/Into impl, since that's a common change too.