8/3/2023 0 Comments Intellij rubymineAs of now, an additional experimental feature needs to be enabled in order for the feature to work as intended. Unused imports declared only inside functions are now considered potentially removable lines of code. The fix is suggested when a receiver self has either the type equal to referenced with lifetime Self or referenced with lifetime Self applied as a type parameter to such smart pointers as Box or Rc. What’s more, the Self type is currently opaque enough for the code insight to suggest the Elide lifetimes quick-fix on self receiver parameters with Self type and declared with the excessive lifetime parameters on them. The refactoring now works across all Self usages without exceptions. Īnalogously, the Convert struct to tuple refactoring provides the ability to convert a struct declared via block with named fields and corresponding types into the struct defined as the tuple, and vice versa. When a struct with the Self keyword is initialized, you get a choice of whether to inject the missing field in the struct if the field is absent in the definition. While being referred to in the impl block, the Self synthetic type supports the missing Create-field quick-fix. Let’s dig in and look at all the new ways the plugin can now analyze Rust code. Now we’re going to show you the rest of the iceberg. In the first part of this “What’s New” series, we only saw the tip of the iceberg – various feature bits that the Rust plugin developers managed to implement during the release cycle.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |