diff options
Diffstat (limited to 'crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs')
-rw-r--r-- | crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs b/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs index d3ff7b65c..da6df9106 100644 --- a/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs +++ b/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs | |||
@@ -235,7 +235,7 @@ fn apply_references( | |||
235 | import: Option<(ImportScope, hir::ModPath)>, | 235 | import: Option<(ImportScope, hir::ModPath)>, |
236 | ) { | 236 | ) { |
237 | if let Some((scope, path)) = import { | 237 | if let Some((scope, path)) = import { |
238 | insert_use(&scope, mod_path_to_ast(&path), insert_use_cfg); | 238 | insert_use(&scope, mod_path_to_ast(&path), &insert_use_cfg); |
239 | } | 239 | } |
240 | // deep clone to prevent cycle | 240 | // deep clone to prevent cycle |
241 | let path = make::path_from_segments(iter::once(segment.clone_subtree()), false); | 241 | let path = make::path_from_segments(iter::once(segment.clone_subtree()), false); |