style: Reformat recent style system changes.

This commit is contained in:
Emilio Cobos Álvarez 2019-05-25 03:11:41 +02:00
parent 87ec2cefc5
commit 81f40a57e4
13 changed files with 207 additions and 214 deletions

View file

@ -112,9 +112,8 @@ macro_rules! define_keyword_type {
#[macro_export]
macro_rules! profiler_label {
($label_type:ident) => {
let mut _profiler_label: $crate::gecko_bindings::structs::AutoProfilerLabel = unsafe {
::std::mem::uninitialized()
};
let mut _profiler_label: $crate::gecko_bindings::structs::AutoProfilerLabel =
unsafe { ::std::mem::uninitialized() };
let _profiler_label = if $crate::gecko::profiler::profiler_is_active() {
unsafe {
Some($crate::gecko::profiler::AutoProfilerLabel::new(
@ -125,12 +124,12 @@ macro_rules! profiler_label {
} else {
None
};
}
};
}
/// No-op when the Gecko profiler is not available.
#[cfg(not(feature = "gecko_profiler"))]
#[macro_export]
macro_rules! profiler_label {
($label_type:ident) => {}
($label_type:ident) => {};
}