Skip to content

Commit bdf41a3

Browse files
authored
Disable clippy lint in derive macro (#31)
1 parent a127559 commit bdf41a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

derive/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ fn derive_get_fields<'a>(public_fields: impl Iterator<Item = &'a FieldOpts> + 'a
254254
};
255255

256256
quote! {
257+
#[allow(clippy::needless_borrow)]
257258
#field_name => Some(#godot_types::prelude::ToGodot::to_variant(&#accessor)),
258259
}
259260
})

0 commit comments

Comments
 (0)