Update rtic-macros/src/codegen/shared_resources.rs

This commit is contained in:
Emil Fresk 2025-12-03 20:49:33 +01:00
parent 1a8418e6f9
commit 1b49d0d3b5

View file

@ -68,6 +68,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> TokenStream2 {
// Opt out from `Send`.
// `#shared_name` is trivially `Sync` because there are no `&self` methods.
// See https://doc.rust-lang.org/std/sync/struct.Exclusive.html .
#(#cfgs)*
unsafe impl<'a> Sync for #shared_name<'a> {}
#(#cfgs)*