mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix warnings related to std::fs::PathExt on Android.
This commit is contained in:
parent
f29ea4e4ef
commit
56af6a6568
2 changed files with 3 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
||||||
#![feature(old_io)]
|
#![feature(old_io)]
|
||||||
#![feature(optin_builtin_traits)]
|
#![feature(optin_builtin_traits)]
|
||||||
#![feature(path)]
|
#![feature(path)]
|
||||||
#![feature(path_ext)]
|
#![cfg_attr(not(target_os = "android"), feature(path_ext))]
|
||||||
#![feature(plugin)]
|
#![feature(plugin)]
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
#![feature(std_misc)]
|
#![feature(std_misc)]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use std::fs::{File, PathExt};
|
use std::fs::File;
|
||||||
use std::io::{self, Read};
|
use std::io::{self, Read};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ pub fn resources_dir_path() -> PathBuf {
|
||||||
pub fn resources_dir_path() -> PathBuf {
|
pub fn resources_dir_path() -> PathBuf {
|
||||||
use opts;
|
use opts;
|
||||||
use std::env;
|
use std::env;
|
||||||
|
use std::fs::PathExt;
|
||||||
|
|
||||||
match opts::get().resources_path {
|
match opts::get().resources_path {
|
||||||
Some(ref path) => PathBuf::new(path),
|
Some(ref path) => PathBuf::new(path),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue