Skip to content

Commit

Permalink
Disable the unused_extern_crates lint everywhere
Browse files Browse the repository at this point in the history
For the 20 extern crate declarations I have,
this new lint gives me 17 false positives.
  • Loading branch information
est31 committed Sep 4, 2017
1 parent 6a231ad commit 9623fb5
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions werk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/opus_compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="opus_compare", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/opus_demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="opus_demo", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_celt_cwrs32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="celt_cwrs", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_celt_dft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="celt_dft", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_celt_entropy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="celt_entropy", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_celt_laplace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="celt_laplace", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_celt_mathops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="celt_mathops", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_celt_mdct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="celt_mdct", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_celt_rotation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="celt_rotation", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_celt_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="celt_types", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_opus_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="opus_api", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_opus_decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="opus_decode", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_opus_encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="opus_encode", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_opus_padding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="opus_padding", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/bin/test_silk_lpc_inv_pred_gain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#![no_main]

#[allow(unused_extern_crates)]
extern crate werk_test;

#[link(name="silk_inv_pred_gain", kind="static")]
Expand Down
1 change: 1 addition & 0 deletions werk_test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
// Please see the COPYING file attached to
// this source distribution for details.

#[allow(unused_extern_crates)]
extern crate werk;

0 comments on commit 9623fb5

Please sign in to comment.