aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src
diff options
context:
space:
mode:
authorRoberto Vidal <[email protected]>2019-04-23 21:19:45 +0100
committerRoberto Vidal <[email protected]>2019-04-23 21:19:45 +0100
commitdd8c3840cbed2c204a71dd5baec3dd4a3194806e (patch)
tree9c0e138351303baa3aca006d53cf3d88bf5f5851 /crates/ra_ide_api/src
parentb56f0102014111e2e57f0df743626d69bab18081 (diff)
CR corrections
Diffstat (limited to 'crates/ra_ide_api/src')
-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) {