File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ impl Delay {
45
45
///
46
46
/// The returned instance of `Delay` will be bound to the timer specified by
47
47
/// the `handle` argument.
48
- pub fn new_handle ( at : Instant , handle : TimerHandle ) -> Delay {
48
+ fn new_handle ( at : Instant , handle : TimerHandle ) -> Delay {
49
49
let inner = match handle. inner . upgrade ( ) {
50
50
Some ( i) => i,
51
51
None => {
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ static HANDLE_FALLBACK: AtomicUsize = AtomicUsize::new(0);
220
220
221
221
/// Error returned from `TimerHandle::set_fallback`.
222
222
#[ derive( Clone , Debug ) ]
223
- pub struct SetDefaultError ( ( ) ) ;
223
+ struct SetDefaultError ( ( ) ) ;
224
224
225
225
impl TimerHandle {
226
226
/// Configures this timer handle to be the one returned by
@@ -245,7 +245,7 @@ impl TimerHandle {
245
245
/// thread otherwise loses a race to call this method then it will fail
246
246
/// returning an error. Once a call to `set_as_global_fallback` is
247
247
/// successful then no future calls may succeed.
248
- pub fn set_as_global_fallback ( self ) -> Result < ( ) , SetDefaultError > {
248
+ fn set_as_global_fallback ( self ) -> Result < ( ) , SetDefaultError > {
249
249
unsafe {
250
250
let val = self . into_usize ( ) ;
251
251
match HANDLE_FALLBACK . compare_exchange ( 0 , val, SeqCst , SeqCst ) {
You can’t perform that action at this time.
0 commit comments