Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio DONTBUILD

Updated with rustfmt 1.4.24-stable (eb894d5 2020-11-05)

# ignore-this-changeset

Depends on D100230

Differential Revision: https://phabricator.services.mozilla.com/D100231
This commit is contained in:
Sylvestre Ledru 2020-12-21 12:15:49 +00:00
parent 88ba586595
commit 00977921cb
4 changed files with 9 additions and 28 deletions

View File

@ -37,8 +37,8 @@ use webrender::{
api::units::*, api::*, render_api::*, set_profiler_hooks, AsyncPropertySampler, AsyncScreenshotHandle, Compositor,
CompositorCapabilities, CompositorConfig, CompositorSurfaceTransform, DebugFlags, Device, NativeSurfaceId,
NativeSurfaceInfo, NativeTileId, PartialPresentCompositor, PipelineInfo, ProfilerHooks, RecordedFrameHandle,
Renderer, RendererOptions, RendererStats, SceneBuilderHooks, ShaderPrecacheFlags, Shaders, ThreadListener,
UploadMethod, WrShaders, ONE_TIME_USAGE_HINT, TextureCacheConfig,
Renderer, RendererOptions, RendererStats, SceneBuilderHooks, ShaderPrecacheFlags, Shaders, TextureCacheConfig,
ThreadListener, UploadMethod, WrShaders, ONE_TIME_USAGE_HINT,
};
use wr_malloc_size_of::MallocSizeOfOps;

View File

@ -41,8 +41,8 @@ pub use self::low_level::CraneliftFuncCompileInput as FuncCompileInput;
pub use self::low_level::CraneliftMetadataEntry as MetadataEntry;
pub use self::low_level::CraneliftModuleEnvironment as LowLevelModuleEnvironment;
pub use self::low_level::CraneliftStaticEnvironment as StaticEnvironment;
pub use self::low_level::TypeIdDescKind;
pub use self::low_level::Trap;
pub use self::low_level::TypeIdDescKind;
mod low_level;

View File

@ -71,10 +71,7 @@ fn imm64(offset: usize) -> ir::immediates::Imm64 {
/// setting up a return value to a caller; they may be used/relied upon when
/// using an arg that came from a caller, or using a return value that came from
/// a callee.
fn init_sig_from_wsig(
call_conv: CallConv,
wsig: &bindings::FuncType,
) -> WasmResult<ir::Signature> {
fn init_sig_from_wsig(call_conv: CallConv, wsig: &bindings::FuncType) -> WasmResult<ir::Signature> {
let mut sig = ir::Signature::new(call_conv);
for arg_type in wsig.args() {

View File

@ -10,12 +10,8 @@ extern crate rkv;
extern crate tempfile;
use rkv::backend::{
BackendEnvironmentBuilder,
SafeMode,
SafeModeDatabase,
SafeModeEnvironment,
SafeModeRoTransaction,
SafeModeRwTransaction,
BackendEnvironmentBuilder, SafeMode, SafeModeDatabase, SafeModeEnvironment,
SafeModeRoTransaction, SafeModeRwTransaction,
};
use std::fs;
use std::fs::File;
@ -215,11 +211,7 @@ pub extern "C" fn fuzz_rkv_calls(raw_data: *const u8, size: libc::size_t) -> lib
}
};
fn store_put<I: Iterator<Item = u8> + Clone>(
fuzz: &mut I,
env: &Rkv,
store: &SingleStore,
) {
fn store_put<I: Iterator<Item = u8> + Clone>(fuzz: &mut I, env: &Rkv, store: &SingleStore) {
let key = match get_any_data(fuzz, 1024) {
Some(key) => key,
None => return,
@ -247,11 +239,7 @@ pub extern "C" fn fuzz_rkv_calls(raw_data: *const u8, size: libc::size_t) -> lib
}
}
fn store_get<I: Iterator<Item = u8> + Clone>(
fuzz: &mut I,
env: &Rkv,
store: &SingleStore,
) {
fn store_get<I: Iterator<Item = u8> + Clone>(fuzz: &mut I, env: &Rkv, store: &SingleStore) {
let key = match get_any_data(fuzz, 1024) {
Some(key) => key,
None => return,
@ -272,11 +260,7 @@ pub extern "C" fn fuzz_rkv_calls(raw_data: *const u8, size: libc::size_t) -> lib
maybe_abort(fuzz, reader).unwrap();
}
fn store_delete<I: Iterator<Item = u8> + Clone>(
fuzz: &mut I,
env: &Rkv,
store: &SingleStore,
) {
fn store_delete<I: Iterator<Item = u8> + Clone>(fuzz: &mut I, env: &Rkv, store: &SingleStore) {
let key = match get_any_data(fuzz, 1024) {
Some(key) => key,
None => return,