diff --git a/src/sdl2/timer.rs b/src/sdl2/timer.rs index 56931680..3a80389d 100644 --- a/src/sdl2/timer.rs +++ b/src/sdl2/timer.rs @@ -49,7 +49,7 @@ pub struct Timer<'a> { } impl<'a> Timer<'a> { - pub fn new<'b>(delay: uint, callback: ||: 'b -> uint, remove_on_drop: bool) -> Timer<'b> { + pub fn new(delay: uint, callback: ||: 'a -> uint, remove_on_drop: bool) -> Timer<'a> { unsafe { let c_param = mem::transmute::<_, raw::Closure>(callback); Timer { delay: delay, raw: 0, closure: c_param, remove_on_drop: remove_on_drop, lifetime: ContravariantLifetime }