mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
chore: better safety comment
This commit is contained in:
parent
2e703476a0
commit
a2dfb62ffc
1 changed files with 1 additions and 1 deletions
|
|
@ -192,7 +192,7 @@ pub fn codegen(ctxt: Context, app: &App, analysis: &Analysis) -> TokenStream2 {
|
|||
#[allow(non_snake_case)]
|
||||
#[doc(hidden)]
|
||||
pub fn #internal_waker_ident() -> ::core::task::Waker {
|
||||
// SAFETY: If `try_allocate` succeeds one must call `spawn`, which we do.
|
||||
// SAFETY: #exec_name is a valid pointer to an executor.
|
||||
unsafe {
|
||||
let exec = rtic::export::executor::AsyncTaskExecutor::#from_ptr_n_args(#name, &#exec_name);
|
||||
exec.waker(|| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue