mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Fix codegen emitting unqualified Result
(#967)
This commit is contained in:
parent
3e65a83110
commit
2c85ee4620
2 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
- Fix codegen emitting unqualified `Result`
|
||||||
- Improve error output for prios > dispatchers
|
- Improve error output for prios > dispatchers
|
||||||
|
|
||||||
## [v2.1.0] - 2024-02-27
|
## [v2.1.0] - 2024-02-27
|
||||||
|
|
|
@ -168,7 +168,7 @@ pub fn codegen(ctxt: Context, app: &App, analysis: &Analysis) -> TokenStream2 {
|
||||||
/// Spawns the task directly
|
/// Spawns the task directly
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn #internal_spawn_ident(#(#input_args,)*) -> Result<(), #input_ty> {
|
pub fn #internal_spawn_ident(#(#input_args,)*) -> ::core::result::Result<(), #input_ty> {
|
||||||
// SAFETY: If `try_allocate` succeeds one must call `spawn`, which we do.
|
// SAFETY: If `try_allocate` succeeds one must call `spawn`, which we do.
|
||||||
unsafe {
|
unsafe {
|
||||||
let exec = rtic::export::executor::AsyncTaskExecutor::#from_ptr_n_args(#name, &#exec_name);
|
let exec = rtic::export::executor::AsyncTaskExecutor::#from_ptr_n_args(#name, &#exec_name);
|
||||||
|
|
Loading…
Reference in a new issue