|
|
@@ -38,6 +38,7 @@ macro_rules! field_accessors {
|
|
|
($struct_name:ident, $($field_name:ident: Option<$type:ty>),*) => {
|
|
|
impl $struct_name {
|
|
|
$(
|
|
|
+ #[allow(clippy::wrong_self_convention, clippy::new_ret_no_self)]
|
|
|
pub fn $field_name(&self) -> $type {
|
|
|
self.$field_name.unwrap_or_default()
|
|
|
}
|