$ represents the cursor
fn new() -> MyStruct {
// ...
MyStruct {
foo,
bar: some_var_name$,
baz,
}
}
here it should be suggested to rename some_var_name to bar, to end up with
MyStruct {
foo,
bar,
baz,
}
this is especially useful if the name of the field was previously some_var_name, and then was later renamed to bar so the local variable name has desynced from the field name
(the name of the assist can be bikeshedded, I can't think of a good one right now)
$represents the cursorhere it should be suggested to rename
some_var_nametobar, to end up withthis is especially useful if the name of the field was previously
some_var_name, and then was later renamed tobarso the local variable name has desynced from the field name(the name of the assist can be bikeshedded, I can't think of a good one right now)