Skip to content

Commit

Permalink
Fix loom
Browse files Browse the repository at this point in the history
  • Loading branch information
arkpar committed Jan 5, 2024
1 parent d8c9bff commit b96c8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl TableFile {
pub fn slice_at(&self, offset: u64, len: usize) -> MappedBytesGuard {
let offset = offset as usize;
let map = self.map.read();
RwLockReadGuard::map(map, |map| {
parking_lot::RwLockReadGuard::map(map, |map| {
let (map, _) = map.as_ref().unwrap();
&map[offset..offset + len]
})
Expand Down

0 comments on commit b96c8f0

Please sign in to comment.