mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 12:55:23 +01:00
Update rtic-macros/src/codegen/shared_resources.rs
This commit is contained in:
parent
1a8418e6f9
commit
1b49d0d3b5
1 changed files with 1 additions and 0 deletions
|
|
@ -68,6 +68,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> TokenStream2 {
|
||||||
// Opt out from `Send`.
|
// Opt out from `Send`.
|
||||||
// `#shared_name` is trivially `Sync` because there are no `&self` methods.
|
// `#shared_name` is trivially `Sync` because there are no `&self` methods.
|
||||||
// See https://doc.rust-lang.org/std/sync/struct.Exclusive.html .
|
// See https://doc.rust-lang.org/std/sync/struct.Exclusive.html .
|
||||||
|
#(#cfgs)*
|
||||||
unsafe impl<'a> Sync for #shared_name<'a> {}
|
unsafe impl<'a> Sync for #shared_name<'a> {}
|
||||||
|
|
||||||
#(#cfgs)*
|
#(#cfgs)*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue