Conversation
|
I'll try to fix the CI |
|
Thank you for your PR! But It's unsafe to implement But the problem is to get mutable reference to static variable. Rust cannot ensure that you does this only once, so it's considered unsafe. So you need to either unsafely get mutable reference to |
|
Also I see that you are using |
|
Thanks for the excellent explanation, that definitely makes sense. Concerning I now found a cleaner solution for RTIC specifically: Instead of splitting the I am wondering how In any case, my issue is solved and this can be closed :) |
I don't know if this can be problematic I actually received this warning in clippy on the most recent stable compiler in my embedded project:
What I am doing is basically defining a
StaticRblike this in my RTIC based application:and then splitting it like this
to pass the handles to different RTIC tasks. I need the unsafe because the RINGBUF has to be defined as a
static mut.When I received the
mutbound from thesplit_reffunction, I can use a regularstaticand I can still split the static structure.