Skip to content

Commit

Permalink
Inline Page::zeroed()
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel McCallum <nathaniel@congru.us>
  • Loading branch information
npmccallum committed Sep 7, 2021
1 parent e792376 commit e76475d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ impl Page {
}

/// Returns a Page full of zeroes
#[inline]
pub const fn zeroed() -> Self {
Self([0; Self::SIZE])
}
Expand Down

0 comments on commit e76475d

Please sign in to comment.