From 75cb1c1806b2fd21b7b3f9ca7ed0ef9111bc1a35 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 Apr 2020 00:11:33 +0200 Subject: Move --- crates/ra_ide/src/completion/completion_item.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crates/ra_ide/src') diff --git a/crates/ra_ide/src/completion/completion_item.rs b/crates/ra_ide/src/completion/completion_item.rs index e17586aa5..ea1e0433c 100644 --- a/crates/ra_ide/src/completion/completion_item.rs +++ b/crates/ra_ide/src/completion/completion_item.rs @@ -52,7 +52,7 @@ pub struct CompletionItem { /// after completion. trigger_call_info: bool, - /// Score is usefull to pre select or display in better order completion items + /// Score is useful to pre select or display in better order completion items score: Option, } @@ -93,6 +93,14 @@ impl fmt::Debug for CompletionItem { } } +#[derive(Debug, Clone)] +pub enum CompletionScore { + /// If only type match + TypeMatch, + /// If type and name match + TypeAndNameMatch, +} + #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum CompletionItemKind { Snippet, @@ -319,14 +327,6 @@ impl<'a> Into for Builder { } } -#[derive(Debug, Clone)] -pub enum CompletionScore { - /// If only type match - TypeMatch, - /// If type and name match - TypeAndNameMatch, -} - /// Represents an in-progress set of completions being built. #[derive(Debug, Default)] pub(crate) struct Completions { -- cgit v1.2.3