[Rust] Don't use inner attributes for allow (#5212)

* Don't use inner attributes for `allow`
Messes with being able to easily include elsewhere

* Regenerate tests

* No-op to retrigger CI

* Add the rest of the `allow` attributes
This commit is contained in:
bspeice
2019-03-09 14:58:27 -06:00
committed by Robert
parent 4f10da8d99
commit 3968d00568
10 changed files with 15 additions and 22 deletions

View File

@@ -495,6 +495,7 @@ The first step is to import/include the library, generated files, etc.
extern crate flatbuffers;
// import the generated code
#[allow(dead_code, unused_imports)]
#[path = "./monster_generated.rs"]
mod monster_generated;
pub use monster_generated::my_game::sample::{get_root_as_monster,
@@ -2042,6 +2043,7 @@ import './monster_my_game.sample_generated.dart' as myGame;
extern crate flatbuffers;
// import the generated code
#[allow(dead_code, unused_imports)]
#[path = "./monster_generated.rs"]
mod monster_generated;
pub use monster_generated::my_game::sample::{get_root_as_monster,