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:
Sylvestre Ledru 2020-11-19 12:00:28 +00:00
parent b70c25df0f
commit 691f01a663
6 changed files with 6 additions and 7 deletions

View File

@ -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");

View File

@ -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;

View File

@ -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")]

View File

@ -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;

View File

@ -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;

View File

@ -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();