diff options
author | Aleksey Kladov <[email protected]> | 2019-02-24 18:54:13 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-24 18:54:13 +0000 |
commit | d5f6a5f5e29df3005533502b49f78daae314ac5b (patch) | |
tree | 20e86fbc586b350c336277d2b0886a60f9844de8 /crates/ra_ide_api/src/completion/complete_struct_literal.rs | |
parent | 98510ec5d3478f3e9178bbff076532487292d8f8 (diff) |
move testing functions
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_struct_literal.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_struct_literal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_struct_literal.rs b/crates/ra_ide_api/src/completion/complete_struct_literal.rs index 1b8fb0768..afb092f59 100644 --- a/crates/ra_ide_api/src/completion/complete_struct_literal.rs +++ b/crates/ra_ide_api/src/completion/complete_struct_literal.rs | |||
@@ -34,10 +34,10 @@ pub(super) fn complete_struct_literal(acc: &mut Completions, ctx: &CompletionCon | |||
34 | #[cfg(test)] | 34 | #[cfg(test)] |
35 | mod tests { | 35 | mod tests { |
36 | use insta::assert_debug_snapshot_matches; | 36 | use insta::assert_debug_snapshot_matches; |
37 | use crate::completion::{CompletionItem, CompletionKind}; | 37 | use crate::completion::{CompletionItem, CompletionKind, do_completion}; |
38 | 38 | ||
39 | fn complete(code: &str) -> Vec<CompletionItem> { | 39 | fn complete(code: &str) -> Vec<CompletionItem> { |
40 | crate::completion::completion_item::do_completion(code, CompletionKind::Reference) | 40 | do_completion(code, CompletionKind::Reference) |
41 | } | 41 | } |
42 | 42 | ||
43 | #[test] | 43 | #[test] |