diff options
author | bspeice <bspeice@users.noreply.github.com> | 2019-03-09 14:58:27 -0600 |
---|---|---|
committer | Robert <rw@users.noreply.github.com> | 2019-03-09 12:58:27 -0800 |
commit | 3968d0056865cb08c62b367470d18d633908565e (patch) | |
tree | a070f2ee3ee564dffd433c408111aa41ad8cebf1 /docs/source | |
parent | 4f10da8d99c1a7bc8c9c7d06d2092a689f171d29 (diff) | |
download | flatbuffers-3968d0056865cb08c62b367470d18d633908565e.tar.gz |
[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
Diffstat (limited to 'docs/source')
-rw-r--r-- | docs/source/RustUsage.md | 1 | ||||
-rw-r--r-- | docs/source/Tutorial.md | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/source/RustUsage.md b/docs/source/RustUsage.md index 80434a47..68191179 100644 --- a/docs/source/RustUsage.md +++ b/docs/source/RustUsage.md @@ -68,6 +68,7 @@ It can be run by `cd`ing to the `rust_usage_test` directory and executing: `carg ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.rs} extern crate flatbuffers; + #[allow(dead_code, unused_imports)] #[path = "../../monster_test_generated.rs"] mod monster_test_generated; pub use monster_test_generated::my_game; diff --git a/docs/source/Tutorial.md b/docs/source/Tutorial.md index db3efa3d..d9c23485 100644 --- a/docs/source/Tutorial.md +++ b/docs/source/Tutorial.md @@ -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, |