We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a244e0 commit e2974baCopy full SHA for e2974ba
crates/ra_assists/src/handlers/extract_struct_from_enum_variant.rs
@@ -127,12 +127,12 @@ fn extract_struct_def(
127
} else {
128
"".to_string()
129
};
130
- let mut buf = String::new();
131
let indent = if let Some(indent) = leading_indent(enum_ast) {
132
indent.to_string()
133
134
135
+ let mut buf = String::new();
136
137
format_to!(
138
buf,
@@ -161,7 +161,6 @@ fn update_variant(
161
list_range.end().checked_sub(TextSize::from(1))?,
162
);
163
edit.perform(file_id, |builder| {
164
- builder.set_file(file_id);
165
builder.replace(inside_variant_range, variant_name);
166
});
167
Some(())
0 commit comments