فهرست منبع

make validate private again

Evan Almloff 1 سال پیش
والد
کامیت
89b7784d31
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      packages/generational-box/src/lib.rs
  2. 2 2
      packages/signals/src/lib.rs

+ 1 - 1
packages/generational-box/src/lib.rs

@@ -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

+ 2 - 2
packages/signals/src/lib.rs

@@ -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::*;