mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,jgraham
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D97397
This commit is contained in:
parent
b70c25df0f
commit
691f01a663
@ -826,8 +826,7 @@ mod tests {
|
||||
let mut iter = args.iter();
|
||||
assert!(iter
|
||||
.find(|&arg| arg == &"--remote-debugging-port".to_owned())
|
||||
.is_some()
|
||||
);
|
||||
.is_some());
|
||||
assert_eq!(iter.next(), Some(&"0".to_owned()));
|
||||
} else {
|
||||
assert!(false, "CLI arguments for remote protocol not found");
|
||||
|
@ -3,7 +3,6 @@
|
||||
* 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/. */
|
||||
|
||||
|
||||
extern crate tempfile;
|
||||
|
||||
pub mod preferences;
|
||||
|
@ -3,7 +3,6 @@
|
||||
* 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/. */
|
||||
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
#[cfg(target_os = "macos")]
|
||||
|
@ -3,7 +3,6 @@
|
||||
* 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/. */
|
||||
|
||||
|
||||
extern crate ini;
|
||||
extern crate regex;
|
||||
extern crate semver;
|
||||
|
@ -2,7 +2,6 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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/. */
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
extern crate base64;
|
||||
|
@ -1395,7 +1395,11 @@ pub mod test_helpers {
|
||||
($T:ty, $U:ty, $V:ty, $member:ident, $method:ident) => {
|
||||
#[no_mangle]
|
||||
#[allow(non_snake_case)]
|
||||
pub unsafe extern "C" fn $method(size: *mut usize, align: *mut usize, offset: *mut usize) {
|
||||
pub unsafe extern "C" fn $method(
|
||||
size: *mut usize,
|
||||
align: *mut usize,
|
||||
offset: *mut usize,
|
||||
) {
|
||||
// Create a temporary value of type T to get offsets, sizes
|
||||
// and alignments from.
|
||||
let tmp: mem::MaybeUninit<$T> = mem::MaybeUninit::uninit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user