From 65d9966a4f6c35b63f97c16f5f62f83a04574f3e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Jul 2020 16:12:53 +0200 Subject: Always put config first --- crates/ra_ide/src/completion/presentation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide/src/completion/presentation.rs') diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs index e4c57e41a..48afee5fb 100644 --- a/crates/ra_ide/src/completion/presentation.rs +++ b/crates/ra_ide/src/completion/presentation.rs @@ -491,7 +491,7 @@ mod tests { } } - let mut completions = get_all_completion_items(ra_fixture, &CompletionConfig::default()); + let mut completions = get_all_completion_items(CompletionConfig::default(), ra_fixture); completions.sort_by_key(|it| (Reverse(it.score()), it.label().to_string())); let actual = completions .into_iter() @@ -835,6 +835,7 @@ fn bar(s: &S) { fn suppress_arg_snippets() { mark::check!(suppress_arg_snippets); check_edit_with_config( + CompletionConfig { add_call_argument_snippets: false, ..CompletionConfig::default() }, "with_args", r#" fn with_args(x: i32, y: String) {} @@ -844,7 +845,6 @@ fn main() { with_<|> } fn with_args(x: i32, y: String) {} fn main() { with_args($0) } "#, - &CompletionConfig { add_call_argument_snippets: false, ..CompletionConfig::default() }, ); } -- cgit v1.2.3