Fix extern crate in root namespace (#4905)

Imports the Rust FlatBuffers runtime crate even when not using a namespace in a schema.
This commit is contained in:
Chris Holcombe
2018-09-03 19:09:38 -07:00
committed by Robert
parent 9e648c392b
commit 872fad049e
6 changed files with 17 additions and 2 deletions

View File

@@ -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)]

View File

@@ -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)]