We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c74553 commit 71f754cCopy full SHA for 71f754c
godot-macros/src/gdextension.rs
@@ -52,9 +52,8 @@ pub fn attribute_gdextension(item: venial::Item) -> ParseResult<TokenStream> {
52
let impl_ty = &impl_decl.self_ty;
53
54
let mut modifiers = Vec::new();
55
- if icon.is_some() {
56
- let icon_expr = icon.unwrap();
57
- modifiers.push(quote! { with_icon(#icon_expr) });
+ if let Some(icon) = icon {
+ modifiers.push(quote! { with_icon(#icon) });
58
}
59
60
let extension_config_registration = quote! {
0 commit comments