simplify timer queue dispatch

This commit is contained in:
Jorge Aparicio 2018-05-05 10:08:17 +02:00
parent 0cc456ba80
commit cfcf25ef53
7 changed files with 58 additions and 68 deletions

View file

@ -364,7 +364,7 @@ pub fn app(ctxt: &Context, app: &App) -> Tokens {
// XXX or take `self`?
#[inline]
pub fn post<P>(
&self,
&mut self,
t: &mut #krate::Threshold<P>,
payload: #ty,
) -> Result<(), #ty>
@ -412,7 +412,7 @@ pub fn app(ctxt: &Context, app: &App) -> Tokens {
// XXX or take `self`?
#[inline]
pub fn post<P>(
&self,
&mut self,
t: &mut #krate::Threshold<P>,
payload: #ty,
) -> Result<(), #ty>