Fix warnings related to std::fs::PathExt on Android.

This commit is contained in:
Ms2ger 2015-03-25 16:54:34 +01:00
parent f29ea4e4ef
commit 56af6a6568
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +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/. */
use std::fs::{File, PathExt};
use std::fs::File;
use std::io::{self, Read};
use std::path::PathBuf;
@ -15,6 +15,7 @@ pub fn resources_dir_path() -> PathBuf {
pub fn resources_dir_path() -> PathBuf {
use opts;
use std::env;
use std::fs::PathExt;
match opts::get().resources_path {
Some(ref path) => PathBuf::new(path),