mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 05:45:33 +00:00
Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,necko-reviewers,dragana,whimboo
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D92460
This commit is contained in:
parent
d9cd198ba1
commit
0bb0c0e4cf
@ -218,7 +218,8 @@ pub unsafe extern "C" fn fluent_bundle_format_pattern(
|
||||
};
|
||||
|
||||
let mut errors = vec![];
|
||||
bundle.write_pattern(ret_val, pattern, args.as_ref(), &mut errors)
|
||||
bundle
|
||||
.write_pattern(ret_val, pattern, args.as_ref(), &mut errors)
|
||||
.expect("Failed to write to a nsCString.");
|
||||
append_fluent_errors_to_ret_errors(ret_errors, &errors);
|
||||
true
|
||||
@ -241,7 +242,10 @@ pub unsafe extern "C" fn fluent_bundle_add_resource(
|
||||
}
|
||||
}
|
||||
|
||||
fn convert_args<'a>(arg_ids: &'a [nsCString], arg_vals: &'a [FluentArgument]) -> Option<FluentArgs<'a>> {
|
||||
fn convert_args<'a>(
|
||||
arg_ids: &'a [nsCString],
|
||||
arg_vals: &'a [FluentArgument],
|
||||
) -> Option<FluentArgs<'a>> {
|
||||
debug_assert_eq!(arg_ids.len(), arg_vals.len());
|
||||
|
||||
if arg_ids.is_empty() {
|
||||
|
@ -361,9 +361,7 @@ pub extern "C" fn neqo_http3conn_fetch(
|
||||
*stream_id = id;
|
||||
NS_OK
|
||||
}
|
||||
Err(Http3Error::StreamLimitError) => {
|
||||
NS_BASE_STREAM_WOULD_BLOCK
|
||||
}
|
||||
Err(Http3Error::StreamLimitError) => NS_BASE_STREAM_WOULD_BLOCK,
|
||||
Err(_) => NS_ERROR_UNEXPECTED,
|
||||
}
|
||||
}
|
||||
@ -588,7 +586,7 @@ pub extern "C" fn neqo_http3conn_event(
|
||||
let e = (token.expiration_time() - Instant::now()).as_micros();
|
||||
if let Ok(expire_in) = u64::try_from(e) {
|
||||
data.extend_from_slice(token.as_ref());
|
||||
Http3Event::ResumptionToken{ expire_in }
|
||||
Http3Event::ResumptionToken { expire_in }
|
||||
} else {
|
||||
Http3Event::NoEvent
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ use std::fs::File;
|
||||
use std::io::prelude::*;
|
||||
use uuid::Uuid;
|
||||
use webdriver::command::{WebDriverCommand, WebDriverExtensionCommand};
|
||||
use webdriver::error::{WebDriverResult};
|
||||
use webdriver::error::WebDriverResult;
|
||||
use webdriver::httpapi::WebDriverExtensionRoute;
|
||||
use webdriver::Parameters;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user