mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 13:35:41 +00:00
feat: add proc macro to reduce overseer mock boilerplate (#2949)
This commit is contained in:
committed by
GitHub
parent
f36d8efb3d
commit
1ef8eac8ec
@@ -0,0 +1,17 @@
|
||||
#![allow(dead_code)]
|
||||
|
||||
use polkadot_procmacro_overseer_subsystems_gen::AllSubsystemsGen;
|
||||
|
||||
#[derive(Clone, AllSubsystemsGen)]
|
||||
struct AllSubsystems {
|
||||
a: f32,
|
||||
b: u16,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let all = AllSubsystems {
|
||||
a: 0_f32,
|
||||
b: 1_u16,
|
||||
};
|
||||
let _all = all.replace_a(77u8);
|
||||
}
|
||||
Reference in New Issue
Block a user