mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
remove vis restriction for local and shared resources
This commit is contained in:
parent
44c614d792
commit
e47914ee50
8 changed files with 36 additions and 77 deletions
|
|
@ -1,15 +0,0 @@
|
|||
#![no_main]
|
||||
|
||||
#[rtic_macros::mock_app(device = mock)]
|
||||
mod app {
|
||||
#[shared]
|
||||
struct Shared {}
|
||||
|
||||
#[local]
|
||||
struct Local {
|
||||
pub x: u32,
|
||||
}
|
||||
|
||||
#[init]
|
||||
fn init(_: init::Context) -> (Shared, Local) {}
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
error: this field must have inherited / private visibility
|
||||
--> ui/local-pub.rs:10:13
|
||||
|
|
||||
10 | pub x: u32,
|
||||
| ^
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#![no_main]
|
||||
|
||||
#[rtic_macros::mock_app(device = mock)]
|
||||
mod app {
|
||||
#[shared]
|
||||
struct Shared {
|
||||
pub x: u32,
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
error: this field must have inherited / private visibility
|
||||
--> ui/shared-pub.rs:7:13
|
||||
|
|
||||
7 | pub x: u32,
|
||||
| ^
|
||||
Loading…
Add table
Add a link
Reference in a new issue