mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 21:37:36 +00:00
clean up unnecessary outer rust gen-snippet (#5013)
* clean up unneeded outer rust gen-snippet * update generated rust file
This commit is contained in:
@@ -294,10 +294,7 @@ class RustGenerator : public BaseGenerator {
|
||||
// structs, and tables) and output them to a single file.
|
||||
bool generate() {
|
||||
code_.Clear();
|
||||
code_ += "// " + std::string(FlatBuffersGeneratedWarning()) + "\n\n";
|
||||
code_ += "#![allow(dead_code)]";
|
||||
code_ += "#![allow(unused_imports)]";
|
||||
code_ += "extern crate flatbuffers;\n";
|
||||
code_ += "// " + std::string(FlatBuffersGeneratedWarning()) + "\n\n";
|
||||
|
||||
assert(!cur_name_space_);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user