mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Use servo_config::opts only on linux target.
It's not used for other architectures and triggers warnings.
This commit is contained in:
parent
c83ac31e71
commit
9a059b49c5
2 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,7 @@ extern crate bitflags;
|
||||||
extern crate bluetooth_traits;
|
extern crate bluetooth_traits;
|
||||||
extern crate device;
|
extern crate device;
|
||||||
extern crate ipc_channel;
|
extern crate ipc_channel;
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
extern crate servo_config;
|
extern crate servo_config;
|
||||||
extern crate servo_rand;
|
extern crate servo_rand;
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
|
@ -23,6 +24,7 @@ use bluetooth_traits::scanfilter::{BluetoothScanfilter, BluetoothScanfilterSeque
|
||||||
use device::bluetooth::{BluetoothAdapter, BluetoothDevice, BluetoothGATTCharacteristic};
|
use device::bluetooth::{BluetoothAdapter, BluetoothDevice, BluetoothGATTCharacteristic};
|
||||||
use device::bluetooth::{BluetoothGATTDescriptor, BluetoothGATTService};
|
use device::bluetooth::{BluetoothGATTDescriptor, BluetoothGATTService};
|
||||||
use ipc_channel::ipc::{self, IpcReceiver, IpcSender};
|
use ipc_channel::ipc::{self, IpcReceiver, IpcSender};
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
use servo_config::opts;
|
use servo_config::opts;
|
||||||
use servo_rand::Rng;
|
use servo_rand::Rng;
|
||||||
use std::borrow::ToOwned;
|
use std::borrow::ToOwned;
|
||||||
|
|
|
@ -17,6 +17,7 @@ use dom_struct::dom_struct;
|
||||||
use js::conversions::ConversionResult;
|
use js::conversions::ConversionResult;
|
||||||
use js::jsapi::{JSContext, JSObject};
|
use js::jsapi::{JSContext, JSObject};
|
||||||
use js::jsval::{ObjectValue, UndefinedValue};
|
use js::jsval::{ObjectValue, UndefinedValue};
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
use servo_config::opts;
|
use servo_config::opts;
|
||||||
use servo_config::prefs::PREFS;
|
use servo_config::prefs::PREFS;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue