Closed Luro02 closed 4 years ago
There is a bug, where a primitive type is not copied, when they are wrapped in an Option and option_as_ref is enabled:
option_as_ref
#[derive(ShortHand)] struct Example { value: Option<usize>, }
generates
fn value(&self) -> Option<&usize>;
but it should generate
fn value(&self) -> Option<usize>;
There is a bug, where a primitive type is not copied, when they are wrapped in an Option and
option_as_ref
is enabled:generates
but it should generate