Remove unnecessary &mut

This commit is contained in:
Emil Fresk 2022-11-14 07:49:42 +01:00
parent 613b3c59fc
commit 8c7cf4c39a

View file

@ -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