mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
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:
parent
88ba586595
commit
00977921cb
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user