make validate private again

This commit is contained in:
Evan Almloff 2024-01-23 07:32:53 -06:00
parent 079fec3be6
commit 89b7784d31
2 changed files with 3 additions and 3 deletions

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

View file

@ -22,8 +22,8 @@ pub use dependency::*;
mod map;
pub use map::*;
// mod comparer;
// pub use comparer::*;
mod comparer;
pub use comparer::*;
mod global;
pub use global::*;