mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
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:
parent
1a682c6e7c
commit
5c33925458
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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 `/`
|
||||
|
Loading…
Reference in New Issue
Block a user