[Rust] Added global namespace imports (#5121)

* [Rust] Added global namespace imports

* Documented the need for global imports

* Added white_space params to GenNamespaceImports

* Removed a \n from GenNamespaceImports
This commit is contained in:
jean-airoldie
2019-01-24 16:25:56 -05:00
committed by Wouter van Oortmerssen
parent c2f40c37b2
commit 38bf4cfc03
4 changed files with 46 additions and 8 deletions

View File

@@ -1,6 +1,15 @@
// automatically generated by the FlatBuffers compiler, do not modify
#![allow(dead_code)]
#![allow(unused_imports)]
use std::mem;
use std::cmp::Ordering;
extern crate flatbuffers;
use self::flatbuffers::EndianScalar;
pub mod my_game {
#![allow(dead_code)]
#![allow(unused_imports)]

View File

@@ -1,6 +1,15 @@
// automatically generated by the FlatBuffers compiler, do not modify
#![allow(dead_code)]
#![allow(unused_imports)]
use std::mem;
use std::cmp::Ordering;
extern crate flatbuffers;
use self::flatbuffers::EndianScalar;
pub mod namespace_a {
#![allow(dead_code)]
#![allow(unused_imports)]

View File

@@ -1,6 +1,15 @@
// automatically generated by the FlatBuffers compiler, do not modify
#![allow(dead_code)]
#![allow(unused_imports)]
use std::mem;
use std::cmp::Ordering;
extern crate flatbuffers;
use self::flatbuffers::EndianScalar;
pub mod namespace_a {
#![allow(dead_code)]
#![allow(unused_imports)]