make validate private again

This commit is contained in:
Evan Almloff committed 2024-01-23 07:32:53 -06:00
1 parent 079fec3be6
commit 89b7784d31
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ impl<T: 'static, S: AnyStorage> Debug for GenerationalBox<T, S> {
impl<T: 'static, S: Storage<T>> GenerationalBox<T, S> {
#[inline(always)]
pub fn validate(&self) -> bool {
pub(crate) fn validate(&self) -> bool {
#[cfg(any(debug_assertions, feature = "check_generation"))]
{
self.raw