summaryrefslogtreecommitdiff
path: root/tests/namespace_test/namespace_test2_generated.rs
diff options
context:
space:
mode:
authorChris Holcombe <xfactor973@gmail.com>2018-09-03 19:09:38 -0700
committerRobert <rw@users.noreply.github.com>2018-09-03 19:09:38 -0700
commit872fad049e671f201fc35b57a424069b2954dc49 (patch)
tree3f7e075aab0077e5d2edcfc107c584f43481b834 /tests/namespace_test/namespace_test2_generated.rs
parent9e648c392be640fcfd464de21428c02cfdafbc79 (diff)
downloadflatbuffers-872fad049e671f201fc35b57a424069b2954dc49.tar.gz
flatbuffers-872fad049e671f201fc35b57a424069b2954dc49.tar.bz2
flatbuffers-872fad049e671f201fc35b57a424069b2954dc49.zip
Fix extern crate in root namespace (#4905)
Imports the Rust FlatBuffers runtime crate even when not using a namespace in a schema.
Diffstat (limited to 'tests/namespace_test/namespace_test2_generated.rs')
-rw-r--r--tests/namespace_test/namespace_test2_generated.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/namespace_test/namespace_test2_generated.rs b/tests/namespace_test/namespace_test2_generated.rs
index c516d80e..abcd5c66 100644
--- a/tests/namespace_test/namespace_test2_generated.rs
+++ b/tests/namespace_test/namespace_test2_generated.rs
@@ -1,6 +1,10 @@
// automatically generated by the FlatBuffers compiler, do not modify
+#![allow(dead_code)]
+#![allow(unused_imports)]
+extern crate flatbuffers;
+
pub mod namespace_a {
#![allow(dead_code)]
#![allow(unused_imports)]