Skip to content

Commit 87415ac

Browse files
committed
Reorder fields
1 parent 9d5e9d7 commit 87415ac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cpp2rust/converter/translation_rule.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ struct MethodCallFragment {
5454
};
5555

5656
struct TypeInfo {
57+
std::vector<std::string> derives;
5758
std::string type;
5859
bool is_refcount_pointer = false;
5960
bool is_unsafe_pointer = false;
60-
std::vector<std::string> derives;
6161

6262
bool is_pointer() const { return is_refcount_pointer || is_unsafe_pointer; }
6363

@@ -84,13 +84,13 @@ struct TypeRule {
8484
void dump() const;
8585

8686
static TypeRule Plain(std::string type) {
87-
return {{}, {}, {std::move(type), false, false}};
87+
return {{}, {}, {{}, std::move(type), false, false}};
8888
}
8989
static TypeRule RefcountPtr(std::string type) {
90-
return {{}, {}, {std::move(type), true, false}};
90+
return {{}, {}, {{}, std::move(type), true, false}};
9191
}
9292
static TypeRule UnsafePtr(std::string type) {
93-
return {{}, {}, {std::move(type), false, true}};
93+
return {{}, {}, {{}, std::move(type), false, true}};
9494
}
9595
};
9696

0 commit comments

Comments
 (0)