mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 11:23:25 +00:00
Fix lint errors
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
82a2c4cdec
commit
cbb4b4e631
@ -185,7 +185,7 @@ impl PageTableCreator {
|
||||
impl Ia32eTable {
|
||||
fn index(&mut self, level: usize, va: u64) -> &mut Ia32eEntry {
|
||||
debug_assert!((1..=5).contains(&level));
|
||||
let index = va as usize >> (12 + 9 * (level - 1)) & (TABLE_ENTRY_COUNT - 1);
|
||||
let index = (va as usize >> (12 + 9 * (level - 1))) & (TABLE_ENTRY_COUNT - 1);
|
||||
&mut self.0[index]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user