aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2022-11-14 07:49:42 +0100
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2022-11-14 07:49:42 +0100
commit8c7cf4c39a601123d06fb369385f4444fa2d91d1 (patch)
tree81d369e1933081d0607e861210cc5fc45eb8dabd
parent613b3c59fc841caa3ca8c4d7ac440fbfa2f71fd1 (diff)
downloadrtic-async-2022.tar.gz
rtic-async-2022.tar.zst
rtic-async-2022.zip
Remove unnecessary `&mut`async-2022
-rw-r--r--macros/src/codegen/async_dispatchers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/codegen/async_dispatchers.rs b/macros/src/codegen/async_dispatchers.rs
index b2ee5bd3..ca8fba8c 100644
--- a/macros/src/codegen/async_dispatchers.rs
+++ b/macros/src/codegen/async_dispatchers.rs
@@ -79,7 +79,7 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream
));
stmts.push(quote!(
- if !(&mut *#exec_name.get_mut()).is_running() {
+ if !(&*#exec_name.get()).is_running() {
if let Some(#tupled) = rtic::export::interrupt::free(|_| (&mut *#rq.get_mut()).dequeue()) {
// The async executor needs a static priority