mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 12:21:23 +00:00
General Codebase clean up (#5939)
* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. * Ensuring test/generate_code.sh was ran * Fixed Dart Tests by removing code-gen for included files. * General cleanup of codebase.
This commit is contained in:
@@ -1358,8 +1358,8 @@ class RustGenerator : public BaseGenerator {
|
||||
code_ += " Some({{U_ELEMENT_TABLE_TYPE}}::init_from_table(u))";
|
||||
} else {
|
||||
code_ +=
|
||||
" self.{{FIELD_NAME}}().map(|u| "
|
||||
"{{U_ELEMENT_TABLE_TYPE}}::init_from_table(u))";
|
||||
" self.{{FIELD_NAME}}().map(|u| "
|
||||
"{{U_ELEMENT_TABLE_TYPE}}::init_from_table(u))";
|
||||
}
|
||||
code_ += " } else {";
|
||||
code_ += " None";
|
||||
@@ -1788,7 +1788,7 @@ class RustGenerator : public BaseGenerator {
|
||||
code_ += "";
|
||||
if (!parser_.opts.generate_all) {
|
||||
for (auto it = parser_.included_files_.begin();
|
||||
it != parser_.included_files_.end(); ++it) {
|
||||
it != parser_.included_files_.end(); ++it) {
|
||||
if (it->second.empty()) continue;
|
||||
auto noext = flatbuffers::StripExtension(it->second);
|
||||
auto basename = flatbuffers::StripPath(noext);
|
||||
|
||||
Reference in New Issue
Block a user