summaryrefslogtreecommitdiff
path: root/tests/rust_usage_test
diff options
context:
space:
mode:
authorbspeice <bspeice@users.noreply.github.com>2019-03-09 14:58:27 -0600
committerRobert <rw@users.noreply.github.com>2019-03-09 12:58:27 -0800
commit3968d0056865cb08c62b367470d18d633908565e (patch)
treea070f2ee3ee564dffd433c408111aa41ad8cebf1 /tests/rust_usage_test
parent4f10da8d99c1a7bc8c9c7d06d2092a689f171d29 (diff)
downloadflatbuffers-3968d0056865cb08c62b367470d18d633908565e.tar.gz
flatbuffers-3968d0056865cb08c62b367470d18d633908565e.tar.bz2
flatbuffers-3968d0056865cb08c62b367470d18d633908565e.zip
[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 'tests/rust_usage_test')
-rw-r--r--tests/rust_usage_test/benches/flatbuffers_benchmarks.rs1
-rw-r--r--tests/rust_usage_test/bin/alloc_check.rs1
-rw-r--r--tests/rust_usage_test/bin/monster_example.rs1
-rw-r--r--tests/rust_usage_test/tests/integration_test.rs1
4 files changed, 4 insertions, 0 deletions
diff --git a/tests/rust_usage_test/benches/flatbuffers_benchmarks.rs b/tests/rust_usage_test/benches/flatbuffers_benchmarks.rs
index 3ad45c28..2c6be1f3 100644
--- a/tests/rust_usage_test/benches/flatbuffers_benchmarks.rs
+++ b/tests/rust_usage_test/benches/flatbuffers_benchmarks.rs
@@ -20,6 +20,7 @@ use bencher::Bencher;
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/tests/rust_usage_test/bin/alloc_check.rs b/tests/rust_usage_test/bin/alloc_check.rs
index 7fb3ef33..ae1039cb 100644
--- a/tests/rust_usage_test/bin/alloc_check.rs
+++ b/tests/rust_usage_test/bin/alloc_check.rs
@@ -28,6 +28,7 @@ static A: TrackingAllocator = TrackingAllocator;
// import the flatbuffers generated code:
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/tests/rust_usage_test/bin/monster_example.rs b/tests/rust_usage_test/bin/monster_example.rs
index e415a952..3c9a0a0e 100644
--- a/tests/rust_usage_test/bin/monster_example.rs
+++ b/tests/rust_usage_test/bin/monster_example.rs
@@ -1,5 +1,6 @@
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/tests/rust_usage_test/tests/integration_test.rs b/tests/rust_usage_test/tests/integration_test.rs
index 538df034..0dace96d 100644
--- a/tests/rust_usage_test/tests/integration_test.rs
+++ b/tests/rust_usage_test/tests/integration_test.rs
@@ -19,6 +19,7 @@ extern crate quickcheck;
extern crate flatbuffers;
+#[allow(dead_code, unused_imports)]
#[path = "../../monster_test_generated.rs"]
mod monster_test_generated;
pub use monster_test_generated::my_game;