aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r--crates/ra_ide_api/src/symbol_index.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/symbol_index.rs b/crates/ra_ide_api/src/symbol_index.rs
index 9c3803574..1dcff8beb 100644
--- a/crates/ra_ide_api/src/symbol_index.rs
+++ b/crates/ra_ide_api/src/symbol_index.rs
@@ -136,7 +136,7 @@ impl Hash for SymbolIndex {
136 136
137impl SymbolIndex { 137impl SymbolIndex {
138 fn new(mut symbols: Vec<FileSymbol>) -> SymbolIndex { 138 fn new(mut symbols: Vec<FileSymbol>) -> SymbolIndex {
139 fn cmp_key<'a>(s1: &'a FileSymbol) -> impl Ord + Eq + 'a { 139 fn cmp_key<'a>(s1: &'a FileSymbol) -> impl Ord + 'a {
140 unicase::Ascii::new(s1.name.as_str()) 140 unicase::Ascii::new(s1.name.as_str())
141 } 141 }
142 142
@@ -186,7 +186,7 @@ impl SymbolIndex {
186 debug_assert![start <= (std::u32::MAX as usize)]; 186 debug_assert![start <= (std::u32::MAX as usize)];
187 debug_assert![end <= (std::u32::MAX as usize)]; 187 debug_assert![end <= (std::u32::MAX as usize)];
188 188
189 ((start as u64) << 32) + end as u64 189 ((start as u64) << 32) | end as u64
190 } 190 }
191 191
192 fn map_value_to_range(value: u64) -> (usize, usize) { 192 fn map_value_to_range(value: u64) -> (usize, usize) {