Bug 1508670 - [mozrunner] Fix Rust code to be compatible with Rust 2018 edition. r=ato

Depends on D13397

Differential Revision: https://phabricator.services.mozilla.com/D13398

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Henrik Skupin 2018-11-29 20:44:15 +00:00
parent 1a682c6e7c
commit 5c33925458
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@
use std::ffi::{OsStr, OsString};
use runner::platform;
use crate::runner::platform;
fn parse_arg_name<T>(arg: T) -> Option<String>
where

View File

@ -10,4 +10,4 @@ pub mod firefox_args;
pub mod path;
pub mod runner;
pub use runner::platform::firefox_default_path;
pub use crate::runner::platform::firefox_default_path;

View File

@ -13,7 +13,7 @@ use std::process::{Child, Command, Stdio};
use std::thread;
use std::time;
use firefox_args::Arg;
use crate::firefox_args::Arg;
pub trait Runner {
type Process;
@ -310,9 +310,9 @@ pub mod platform {
#[cfg(target_os = "macos")]
pub mod platform {
use path::{find_binary, is_binary};
use std::path::PathBuf;
use crate::path::{find_binary, is_binary};
use dirs;
use std::path::PathBuf;
/// Searches the system path for `firefox-bin`, then looks for
/// `Applications/Firefox.app/Contents/MacOS/firefox-bin` under both `/`