remove vis restriction for local and shared resources

This commit is contained in:
Andrew Gazelka 2023-04-11 13:10:26 -07:00
parent 44c614d792
commit e47914ee50
No known key found for this signature in database
GPG key ID: 67C80748D14ED9F6
8 changed files with 36 additions and 77 deletions

View file

@ -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) {}
}

View file

@ -1,5 +0,0 @@
error: this field must have inherited / private visibility
--> ui/local-pub.rs:10:13
|
10 | pub x: u32,
| ^

View file

@ -1,9 +0,0 @@
#![no_main]
#[rtic_macros::mock_app(device = mock)]
mod app {
#[shared]
struct Shared {
pub x: u32,
}
}

View file

@ -1,5 +0,0 @@
error: this field must have inherited / private visibility
--> ui/shared-pub.rs:7:13
|
7 | pub x: u32,
| ^