mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-02-17 13:58:38 +01:00
Due to new module boundaries the schedule fn needs to be pub
This commit is contained in:
parent
a151974245
commit
5b17f8b599
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ pub fn codegen(app: &App, extra: &Extra) -> Vec<TokenStream2> {
|
||||||
|
|
||||||
methods.push(quote!(
|
methods.push(quote!(
|
||||||
#(#cfgs)*
|
#(#cfgs)*
|
||||||
fn #name(&self, instant: #instant #(,#args)*) -> Result<(), #ty> {
|
pub fn #name(&self, instant: #instant #(,#args)*) -> Result<(), #ty> {
|
||||||
#body
|
#body
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
@ -49,7 +49,7 @@ pub fn codegen(app: &App, extra: &Extra) -> Vec<TokenStream2> {
|
||||||
|
|
||||||
items.push(quote!(
|
items.push(quote!(
|
||||||
#(#cfgs)*
|
#(#cfgs)*
|
||||||
unsafe fn #schedule(
|
pub unsafe fn #schedule(
|
||||||
priority: &rtic::export::Priority,
|
priority: &rtic::export::Priority,
|
||||||
instant: #instant
|
instant: #instant
|
||||||
#(,#args)*
|
#(,#args)*
|
||||||
|
@ -62,7 +62,7 @@ pub fn codegen(app: &App, extra: &Extra) -> Vec<TokenStream2> {
|
||||||
methods.push(quote!(
|
methods.push(quote!(
|
||||||
#(#cfgs)*
|
#(#cfgs)*
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn #name(&self, instant: #instant #(,#args)*) -> Result<(), #ty> {
|
pub fn #name(&self, instant: #instant #(,#args)*) -> Result<(), #ty> {
|
||||||
unsafe {
|
unsafe {
|
||||||
#schedule(self.priority(), instant #(,#untupled)*)
|
#schedule(self.priority(), instant #(,#untupled)*)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue