From 9623fb5a441465e758a79b29da951e2a8e7184a8 Mon Sep 17 00:00:00 2001 From: est31 Date: Mon, 4 Sep 2017 07:41:26 +0200 Subject: [PATCH] Disable the unused_extern_crates lint everywhere For the 20 extern crate declarations I have, this new lint gives me 17 false positives. --- werk/src/lib.rs | 1 + werk_test/src/bin/opus_compare.rs | 1 + werk_test/src/bin/opus_demo.rs | 1 + werk_test/src/bin/test_celt_cwrs32.rs | 1 + werk_test/src/bin/test_celt_dft.rs | 1 + werk_test/src/bin/test_celt_entropy.rs | 1 + werk_test/src/bin/test_celt_laplace.rs | 1 + werk_test/src/bin/test_celt_mathops.rs | 1 + werk_test/src/bin/test_celt_mdct.rs | 1 + werk_test/src/bin/test_celt_rotation.rs | 1 + werk_test/src/bin/test_celt_types.rs | 1 + werk_test/src/bin/test_opus_api.rs | 1 + werk_test/src/bin/test_opus_decode.rs | 1 + werk_test/src/bin/test_opus_encode.rs | 1 + werk_test/src/bin/test_opus_padding.rs | 1 + werk_test/src/bin/test_silk_lpc_inv_pred_gain.rs | 1 + werk_test/src/lib.rs | 1 + 17 files changed, 17 insertions(+) diff --git a/werk/src/lib.rs b/werk/src/lib.rs index cb13a84..d8e5cdd 100644 --- a/werk/src/lib.rs +++ b/werk/src/lib.rs @@ -7,6 +7,7 @@ // Please see the COPYING file attached to // this source distribution for details. +#[allow(unused_extern_crates)] extern crate werk_sys; pub mod celt; diff --git a/werk_test/src/bin/opus_compare.rs b/werk_test/src/bin/opus_compare.rs index 4489a47..9214f77 100644 --- a/werk_test/src/bin/opus_compare.rs +++ b/werk_test/src/bin/opus_compare.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="opus_compare", kind="static")] diff --git a/werk_test/src/bin/opus_demo.rs b/werk_test/src/bin/opus_demo.rs index 6d66d3d..416eaa3 100644 --- a/werk_test/src/bin/opus_demo.rs +++ b/werk_test/src/bin/opus_demo.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="opus_demo", kind="static")] diff --git a/werk_test/src/bin/test_celt_cwrs32.rs b/werk_test/src/bin/test_celt_cwrs32.rs index 8868cce..e04f397 100644 --- a/werk_test/src/bin/test_celt_cwrs32.rs +++ b/werk_test/src/bin/test_celt_cwrs32.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="celt_cwrs", kind="static")] diff --git a/werk_test/src/bin/test_celt_dft.rs b/werk_test/src/bin/test_celt_dft.rs index e5e4c5f..ddc6e96 100644 --- a/werk_test/src/bin/test_celt_dft.rs +++ b/werk_test/src/bin/test_celt_dft.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="celt_dft", kind="static")] diff --git a/werk_test/src/bin/test_celt_entropy.rs b/werk_test/src/bin/test_celt_entropy.rs index 5f81c26..e569783 100644 --- a/werk_test/src/bin/test_celt_entropy.rs +++ b/werk_test/src/bin/test_celt_entropy.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="celt_entropy", kind="static")] diff --git a/werk_test/src/bin/test_celt_laplace.rs b/werk_test/src/bin/test_celt_laplace.rs index efcf329..be7a50d 100644 --- a/werk_test/src/bin/test_celt_laplace.rs +++ b/werk_test/src/bin/test_celt_laplace.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="celt_laplace", kind="static")] diff --git a/werk_test/src/bin/test_celt_mathops.rs b/werk_test/src/bin/test_celt_mathops.rs index 6ee164d..28c8e61 100644 --- a/werk_test/src/bin/test_celt_mathops.rs +++ b/werk_test/src/bin/test_celt_mathops.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="celt_mathops", kind="static")] diff --git a/werk_test/src/bin/test_celt_mdct.rs b/werk_test/src/bin/test_celt_mdct.rs index a7fe16b..178d64e 100644 --- a/werk_test/src/bin/test_celt_mdct.rs +++ b/werk_test/src/bin/test_celt_mdct.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="celt_mdct", kind="static")] diff --git a/werk_test/src/bin/test_celt_rotation.rs b/werk_test/src/bin/test_celt_rotation.rs index 7c743fb..1f5c69c 100644 --- a/werk_test/src/bin/test_celt_rotation.rs +++ b/werk_test/src/bin/test_celt_rotation.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="celt_rotation", kind="static")] diff --git a/werk_test/src/bin/test_celt_types.rs b/werk_test/src/bin/test_celt_types.rs index 3b6ea09..8f4922b 100644 --- a/werk_test/src/bin/test_celt_types.rs +++ b/werk_test/src/bin/test_celt_types.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="celt_types", kind="static")] diff --git a/werk_test/src/bin/test_opus_api.rs b/werk_test/src/bin/test_opus_api.rs index 53cafa4..973880e 100644 --- a/werk_test/src/bin/test_opus_api.rs +++ b/werk_test/src/bin/test_opus_api.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="opus_api", kind="static")] diff --git a/werk_test/src/bin/test_opus_decode.rs b/werk_test/src/bin/test_opus_decode.rs index 3839d56..4ae8c71 100644 --- a/werk_test/src/bin/test_opus_decode.rs +++ b/werk_test/src/bin/test_opus_decode.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="opus_decode", kind="static")] diff --git a/werk_test/src/bin/test_opus_encode.rs b/werk_test/src/bin/test_opus_encode.rs index 6a483be..ba74513 100644 --- a/werk_test/src/bin/test_opus_encode.rs +++ b/werk_test/src/bin/test_opus_encode.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="opus_encode", kind="static")] diff --git a/werk_test/src/bin/test_opus_padding.rs b/werk_test/src/bin/test_opus_padding.rs index 50e6cc0..cd68b97 100644 --- a/werk_test/src/bin/test_opus_padding.rs +++ b/werk_test/src/bin/test_opus_padding.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="opus_padding", kind="static")] diff --git a/werk_test/src/bin/test_silk_lpc_inv_pred_gain.rs b/werk_test/src/bin/test_silk_lpc_inv_pred_gain.rs index 5637347..7de4152 100644 --- a/werk_test/src/bin/test_silk_lpc_inv_pred_gain.rs +++ b/werk_test/src/bin/test_silk_lpc_inv_pred_gain.rs @@ -9,6 +9,7 @@ #![no_main] +#[allow(unused_extern_crates)] extern crate werk_test; #[link(name="silk_inv_pred_gain", kind="static")] diff --git a/werk_test/src/lib.rs b/werk_test/src/lib.rs index fa33dd6..2e9aa39 100644 --- a/werk_test/src/lib.rs +++ b/werk_test/src/lib.rs @@ -7,4 +7,5 @@ // Please see the COPYING file attached to // this source distribution for details. +#[allow(unused_extern_crates)] extern crate werk;