diff --git a/src/sdl2/timer.rs b/src/sdl2/timer.rs index 8ada4afb..da415cbc 100644 --- a/src/sdl2/timer.rs +++ b/src/sdl2/timer.rs @@ -18,6 +18,7 @@ pub fn delay(ms: u32) { unsafe { ll::SDL_Delay(ms) } } +#[unstable = "Unstable because of move to unboxed closures and `box` syntax"] pub struct Timer { _callback: Box, _delay: usize, @@ -25,7 +26,6 @@ pub struct Timer { } impl Timer { - #[unstable] /// Constructs a new timer using the boxed closure `callback`. /// The timer is started immediately, it will be cancelled either: /// * when the timer is dropped