Skip to content

Commit b8aedfb

Browse files
committed
Provide default impl for PageTable
1 parent 66a37da commit b8aedfb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/structures/paging/page_table.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ impl IndexMut<PageTableIndex> for PageTable {
246246
}
247247
}
248248

249+
impl Default for PageTable {
250+
fn default() -> Self {
251+
Self::new()
252+
}
253+
}
254+
249255
impl fmt::Debug for PageTable {
250256
#[inline]
251257
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {

0 commit comments

Comments
 (0)