mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
CR corrections
This commit is contained in:
parent
b56f010201
commit
dd8c3840cb
1 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ impl Hash for SymbolIndex {
|
||||||
|
|
||||||
impl SymbolIndex {
|
impl SymbolIndex {
|
||||||
fn new(mut symbols: Vec<FileSymbol>) -> SymbolIndex {
|
fn new(mut symbols: Vec<FileSymbol>) -> SymbolIndex {
|
||||||
fn cmp_key<'a>(s1: &'a FileSymbol) -> impl Ord + Eq + 'a {
|
fn cmp_key<'a>(s1: &'a FileSymbol) -> impl Ord + 'a {
|
||||||
unicase::Ascii::new(s1.name.as_str())
|
unicase::Ascii::new(s1.name.as_str())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ impl SymbolIndex {
|
||||||
debug_assert![start <= (std::u32::MAX as usize)];
|
debug_assert![start <= (std::u32::MAX as usize)];
|
||||||
debug_assert![end <= (std::u32::MAX as usize)];
|
debug_assert![end <= (std::u32::MAX as usize)];
|
||||||
|
|
||||||
((start as u64) << 32) + end as u64
|
((start as u64) << 32) | end as u64
|
||||||
}
|
}
|
||||||
|
|
||||||
fn map_value_to_range(value: u64) -> (usize, usize) {
|
fn map_value_to_range(value: u64) -> (usize, usize) {
|
||||||
|
|
Loading…
Reference in a new issue