mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Fix compile error and warning on Android
This commit is contained in:
parent
feae7d0b5d
commit
36b1cf4eba
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ use servo_util::opts;
|
|||
use url::{Url, UrlParser};
|
||||
|
||||
|
||||
#[cfg(not(test), not(target_os="android"))]
|
||||
#[cfg(not(test))]
|
||||
use std::os;
|
||||
#[cfg(not(test), target_os="android")]
|
||||
use std::str;
|
||||
|
@ -83,7 +83,7 @@ pub extern "C" fn android_start(argc: int, argv: **u8) -> int {
|
|||
}
|
||||
}
|
||||
|
||||
let mut opts = opts::from_cmdline_args(args.as_slice());
|
||||
let opts = opts::from_cmdline_args(args.as_slice());
|
||||
match opts {
|
||||
Some(mut o) => {
|
||||
// Always use CPU rendering on android.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue