diff options
author | Lukas Tobias Wirth <[email protected]> | 2021-05-18 18:49:15 +0100 |
---|---|---|
committer | Lukas Tobias Wirth <[email protected]> | 2021-05-18 18:53:20 +0100 |
commit | 64f7072c255bd97a58b8344d0beeae281b8f7e13 (patch) | |
tree | a0e0b102c4880ff5c6b9c58a266479b513186acb /crates/rust-analyzer/src/integrated_benchmarks.rs | |
parent | e3d0d89d7e3e253234271008df9324ec1faf1746 (diff) |
MergeBehavior -> ImportGranularity
Diffstat (limited to 'crates/rust-analyzer/src/integrated_benchmarks.rs')
-rw-r--r-- | crates/rust-analyzer/src/integrated_benchmarks.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/integrated_benchmarks.rs b/crates/rust-analyzer/src/integrated_benchmarks.rs index ba2790acb..cd0b8d559 100644 --- a/crates/rust-analyzer/src/integrated_benchmarks.rs +++ b/crates/rust-analyzer/src/integrated_benchmarks.rs | |||
@@ -13,7 +13,10 @@ | |||
13 | use std::{convert::TryFrom, sync::Arc}; | 13 | use std::{convert::TryFrom, sync::Arc}; |
14 | 14 | ||
15 | use ide::{Change, CompletionConfig, FilePosition, TextSize}; | 15 | use ide::{Change, CompletionConfig, FilePosition, TextSize}; |
16 | use ide_db::helpers::{insert_use::InsertUseConfig, merge_imports::MergeBehavior, SnippetCap}; | 16 | use ide_db::helpers::{ |
17 | insert_use::{ImportGranularity, InsertUseConfig}, | ||
18 | SnippetCap, | ||
19 | }; | ||
17 | use test_utils::project_root; | 20 | use test_utils::project_root; |
18 | use vfs::{AbsPathBuf, VfsPath}; | 21 | use vfs::{AbsPathBuf, VfsPath}; |
19 | 22 | ||
@@ -133,7 +136,7 @@ fn integrated_completion_benchmark() { | |||
133 | add_call_argument_snippets: true, | 136 | add_call_argument_snippets: true, |
134 | snippet_cap: SnippetCap::new(true), | 137 | snippet_cap: SnippetCap::new(true), |
135 | insert_use: InsertUseConfig { | 138 | insert_use: InsertUseConfig { |
136 | merge: Some(MergeBehavior::Crate), | 139 | granularity: ImportGranularity::Crate, |
137 | prefix_kind: hir::PrefixKind::ByCrate, | 140 | prefix_kind: hir::PrefixKind::ByCrate, |
138 | group: true, | 141 | group: true, |
139 | }, | 142 | }, |
@@ -166,7 +169,7 @@ fn integrated_completion_benchmark() { | |||
166 | add_call_argument_snippets: true, | 169 | add_call_argument_snippets: true, |
167 | snippet_cap: SnippetCap::new(true), | 170 | snippet_cap: SnippetCap::new(true), |
168 | insert_use: InsertUseConfig { | 171 | insert_use: InsertUseConfig { |
169 | merge: Some(MergeBehavior::Crate), | 172 | granularity: ImportGranularity::Crate, |
170 | prefix_kind: hir::PrefixKind::ByCrate, | 173 | prefix_kind: hir::PrefixKind::ByCrate, |
171 | group: true, | 174 | group: true, |
172 | }, | 175 | }, |