mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 22:05:37 +01:00
simplify timer queue dispatch
This commit is contained in:
parent
0cc456ba80
commit
cfcf25ef53
7 changed files with 58 additions and 68 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue