Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ielashi committed Aug 30, 2023
1 parent dd59a84 commit c70550e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/btreemap/node/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ struct RealSegment {
// ↑ ↑ ↑ ↑
// Page 0 Page 1 Page 2 Page 3
//
// The [`Node`] is internally divided into fixed-size pages. In the node's virtual
// address space, all these pages are consecutive, but in the underlying memory this may not
// be the case.
// The [`Node`] is internally divided into fixed-size pages. In the node's virtual address space,
// all these pages are consecutive, but in the underlying memory this may not be the case.
//
// A virtual segment would first be split at the page boundaries. The example virtual segment
// above would be split into the following segments:
// A virtual segment would be split at the page boundaries. The example virtual segment
// above would be split into the following "real" segments:
//
// (A, end of page 0)
// (start of page 1, end of page 1)
Expand Down
2 changes: 1 addition & 1 deletion src/btreemap/node/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl<K: Storable + Ord + Clone> Node<K> {
children,
node_type,
version: Version::V2(page_size),
overflows: overflows,
overflows,
}
}

Expand Down

0 comments on commit c70550e

Please sign in to comment.