From 3968d0056865cb08c62b367470d18d633908565e Mon Sep 17 00:00:00 2001 From: bspeice Date: Sat, 9 Mar 2019 14:58:27 -0600 Subject: [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 --- tests/rust_usage_test/benches/flatbuffers_benchmarks.rs | 1 + tests/rust_usage_test/bin/alloc_check.rs | 1 + tests/rust_usage_test/bin/monster_example.rs | 1 + tests/rust_usage_test/tests/integration_test.rs | 1 + 4 files changed, 4 insertions(+) (limited to 'tests/rust_usage_test') 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; -- cgit v1.2.3