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
The name could either be the &'static str content or a generic placeholder. The content is beneficial since it may reduce the amount of times the const needs to be renamed, but it's less likely to be correct for longer content.
Not 100% sure if it should be moved to the root scope or to the top of the current scope
Could be extended to all literals with different rules for naming
Thanks for your consideration!
The text was updated successfully, but these errors were encountered:
Hey, I think a useful action for
&'static str
would be "Extract into const":➜ Extract into const
Suggested behavior:
&'static str
content or a generic placeholder. The content is beneficial since it may reduce the amount of times theconst
needs to be renamed, but it's less likely to be correct for longer content.Thanks for your consideration!
The text was updated successfully, but these errors were encountered: