From 87f87bdc70f4e25447a1926fc6b66f0b30ddfe62 Mon Sep 17 00:00:00 2001 From: Robert Straw Date: Thu, 5 Feb 2015 14:21:57 -0600 Subject: [PATCH] Move stability marker to struct itself... --- src/sdl2/timer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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