diff options
Diffstat (limited to 'crates/ra_ide/src/completion/completion_item.rs')
-rw-r--r-- | crates/ra_ide/src/completion/completion_item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/completion/completion_item.rs b/crates/ra_ide/src/completion/completion_item.rs index ea1e0433c..687b380bb 100644 --- a/crates/ra_ide/src/completion/completion_item.rs +++ b/crates/ra_ide/src/completion/completion_item.rs | |||
@@ -93,7 +93,7 @@ impl fmt::Debug for CompletionItem { | |||
93 | } | 93 | } |
94 | } | 94 | } |
95 | 95 | ||
96 | #[derive(Debug, Clone)] | 96 | #[derive(Debug, Clone, Copy)] |
97 | pub enum CompletionScore { | 97 | pub enum CompletionScore { |
98 | /// If only type match | 98 | /// If only type match |
99 | TypeMatch, | 99 | TypeMatch, |
@@ -202,7 +202,7 @@ impl CompletionItem { | |||
202 | } | 202 | } |
203 | 203 | ||
204 | pub fn score(&self) -> Option<CompletionScore> { | 204 | pub fn score(&self) -> Option<CompletionScore> { |
205 | self.score.clone() | 205 | self.score |
206 | } | 206 | } |
207 | 207 | ||
208 | pub fn set_score(&mut self, score: CompletionScore) { | 208 | pub fn set_score(&mut self, score: CompletionScore) { |