mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #10706 - zwn:unused-extern-crates, r=nox
Turn on unused-extern-crates warning. As discussed in #9256. It should solve second half of the issue. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706) <!-- Reviewable:end -->
This commit is contained in:
commit
0a3a50a129
29 changed files with 23 additions and 55 deletions
|
@ -18,6 +18,7 @@
|
|||
#![deny(unsafe_code)]
|
||||
|
||||
extern crate app_units;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
extern crate deque;
|
||||
|
@ -27,6 +28,7 @@ extern crate heapsize;
|
|||
extern crate ipc_channel;
|
||||
#[cfg(feature = "non-geckolib")]
|
||||
extern crate js;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
extern crate libc;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#[cfg(not(target_os = "android"))]
|
||||
use std::env;
|
||||
use std::fs::File;
|
||||
use std::io::{self, Read};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue