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 7d74bf1 commit e3e4ae1Copy full SHA for e3e4ae1
derive/src/lib.rs
@@ -18,11 +18,12 @@ pub fn impl_object(input: TokenStream) -> TokenStream {
18
// Build the impl
19
let name = &ast.ident;
20
let link_name = format!("OBJC_CLASS_$_{}", name);
21
+ let (impl_generics, ty_generics, where_clause) = ast.generics.split_for_impl();
22
23
let gen = quote! {
- unsafe impl ::objc::Message for #name { }
24
+ unsafe impl #impl_generics ::objc::Message for #name #ty_generics #where_clause { }
25
- impl ::objc_foundation::INSObject for #name {
26
+ impl #impl_generics ::objc_foundation::INSObject for #name #ty_generics #where_clause {
27
fn class() -> &'static ::objc::runtime::Class {
28
extern {
29
#[link_name = #link_name]
0 commit comments