don't generate default with getter
This commit is contained in:
@ -28,6 +28,17 @@ struct Config {
|
||||
field: Cell<i32>,
|
||||
}
|
||||
|
||||
#[config]
|
||||
struct WithSetterAndDefault {
|
||||
#[config(
|
||||
default = "42",
|
||||
typ = "i32",
|
||||
get = "Cell::get",
|
||||
set = "set_cell::<{i32::MIN}, {i32::MAX}>"
|
||||
)]
|
||||
field: Cell<i32>,
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn get() {
|
||||
let mut buffer = [0u8; 32];
|
||||
|
Reference in New Issue
Block a user