diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2024-08-07 21:17:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-07 19:17:34 +0000 |
| commit | 2c85ee4620bc18096aedbae8c248656de6aa9f7c (patch) | |
| tree | 014b2b81e266f14202d870620492bf1f37d88513 | |
| parent | 3e65a83110d8cccf25cb3e78a9faedfeed4826ac (diff) | |
Fix codegen emitting unqualified `Result` (#967)
| -rw-r--r-- | rtic-macros/CHANGELOG.md | 1 | ||||
| -rw-r--r-- | rtic-macros/src/codegen/module.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/rtic-macros/CHANGELOG.md b/rtic-macros/CHANGELOG.md index 5f21838..557260d 100644 --- a/rtic-macros/CHANGELOG.md +++ b/rtic-macros/CHANGELOG.md @@ -9,6 +9,7 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top! ### Changed +- Fix codegen emitting unqualified `Result` - Improve error output for prios > dispatchers ## [v2.1.0] - 2024-02-27 diff --git a/rtic-macros/src/codegen/module.rs b/rtic-macros/src/codegen/module.rs index 1b4ecaf..a8700c5 100644 --- a/rtic-macros/src/codegen/module.rs +++ b/rtic-macros/src/codegen/module.rs @@ -168,7 +168,7 @@ pub fn codegen(ctxt: Context, app: &App, analysis: &Analysis) -> TokenStream2 { /// Spawns the task directly #[allow(non_snake_case)] #[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. unsafe { let exec = rtic::export::executor::AsyncTaskExecutor::#from_ptr_n_args(#name, &#exec_name); |
