diff options
author | Derek Bailey <derekbailey@google.com> | 2020-06-01 08:40:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 08:40:55 -0700 |
commit | 7179a5a8baf478b09bb906ed0be030ade87f02cd (patch) | |
tree | 3ee61dc6eb96faf9fd6a85f3f7906c0e5aaa2bee /src/idl_gen_rust.cpp | |
parent | a0da0c08c603e1b77f24d1db83f79c9f64341768 (diff) | |
download | flatbuffers-7179a5a8baf478b09bb906ed0be030ade87f02cd.tar.gz flatbuffers-7179a5a8baf478b09bb906ed0be030ade87f02cd.tar.bz2 flatbuffers-7179a5a8baf478b09bb906ed0be030ade87f02cd.zip |
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.
Diffstat (limited to 'src/idl_gen_rust.cpp')
-rw-r--r-- | src/idl_gen_rust.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/idl_gen_rust.cpp b/src/idl_gen_rust.cpp index 0369188d..45d5faff 100644 --- a/src/idl_gen_rust.cpp +++ b/src/idl_gen_rust.cpp @@ -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); |