File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,20 +24,20 @@ use core::{
2424// }
2525// the effects of c() or writes to shared memory will not necessarily be
2626// observed and additional synchronization methods may be needed.
27- pub ( crate ) struct LazyUsize ( AtomicUsize ) ;
27+ struct LazyUsize ( AtomicUsize ) ;
2828
2929impl LazyUsize {
3030 // The initialization is not completed.
3131 const UNINIT : usize = usize:: MAX ;
3232
33- pub const fn new ( ) -> Self {
33+ const fn new ( ) -> Self {
3434 Self ( AtomicUsize :: new ( Self :: UNINIT ) )
3535 }
3636
3737 // Runs the init() function at most once, returning the value of some run of
3838 // init(). Multiple callers can run their init() functions in parallel.
3939 // init() should always return the same value, if it succeeds.
40- pub fn unsync_init ( & self , init : impl FnOnce ( ) -> usize ) -> usize {
40+ fn unsync_init ( & self , init : impl FnOnce ( ) -> usize ) -> usize {
4141 #[ cold]
4242 fn do_init ( this : & LazyUsize , init : impl FnOnce ( ) -> usize ) -> usize {
4343 let val = init ( ) ;
You can’t perform that action at this time.
0 commit comments