Implement Component using vtable

(the C++ part not yet ported)
This commit is contained in:
Olivier Goffart 2020-05-14 12:28:48 +02:00
parent 4b19818f6c
commit fb691e0808
2 changed files with 8 additions and 5 deletions

View file

@ -177,6 +177,8 @@ pub fn vtable(_attr: TokenStream, item: TokenStream) -> TokenStream {
}
// Remove pub, if any
field.vis = Visibility::Inherited;
// FIXME!!!
field.vis = Visibility::Public(VisPublic{ pub_token: Default::default() });
let mut wrap_trait_call = None;
if !has_self {