diff --git a/components/servo/main.rs b/components/servo/main.rs index 3e81da46f1f5..34c9bfe3d90d 100644 --- a/components/servo/main.rs +++ b/components/servo/main.rs @@ -31,8 +31,6 @@ use servo::Browser; use servo::compositing::windowing::WindowEvent; use servo::net_traits::hosts; use servo::util::opts; -#[cfg(target_os = "android")] -use std::borrow::ToOwned; use std::rc::Rc; fn main() { diff --git a/components/util/lib.rs b/components/util/lib.rs index 5cfda0e8c7cc..850998408f19 100644 --- a/components/util/lib.rs +++ b/components/util/lib.rs @@ -11,7 +11,7 @@ #![feature(heap_api)] #![feature(oom)] #![feature(optin_builtin_traits)] -#![feature(path_ext)] +#![cfg_attr(not(target_os = "android"), feature(path_ext))] #![feature(plugin)] #![feature(slice_splits)] #![feature(step_by)]