Put super as the first field, and removed _pin
This commit is contained in:
@@ -108,16 +108,14 @@ impl ClassProcessedData {
|
|||||||
));
|
));
|
||||||
cg.indent += 1;
|
cg.indent += 1;
|
||||||
|
|
||||||
cg.add_indentedln("pub _vptr: &'static [*const std::ffi::c_void],");
|
|
||||||
|
|
||||||
cg.add_indentedln("_pin: std::marker::PhantomPinned,");
|
|
||||||
|
|
||||||
if let Some(ref inherits) = self.inherits {
|
if let Some(ref inherits) = self.inherits {
|
||||||
cg.add_indented("pub _super: ");
|
cg.add_indented("pub _super: ");
|
||||||
cg.add(&get_type_from_path(inherits).get_rust());
|
cg.add(&get_type_from_path(inherits).get_rust());
|
||||||
cg.addln(",");
|
cg.addln(",");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cg.add_indentedln("pub _vptr: &'static [*const std::ffi::c_void],");
|
||||||
|
|
||||||
for field in &self.fields {
|
for field in &self.fields {
|
||||||
cg.add_indentedln(&field.get_comment());
|
cg.add_indentedln(&field.get_comment());
|
||||||
cg.add_indentedln(&field.item.decl.get_rust());
|
cg.add_indentedln(&field.item.decl.get_rust());
|
||||||
|
|||||||
Reference in New Issue
Block a user