CR corrections

This commit is contained in:
Roberto Vidal 2019-04-23 22:19:45 +02:00
parent b56f010201
commit dd8c3840cb

View file

@ -136,7 +136,7 @@ impl Hash for SymbolIndex {
impl 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())
}
@ -186,7 +186,7 @@ impl SymbolIndex {
debug_assert![start <= (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) {