mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Reformat recent style system changes.
This commit is contained in:
parent
87ec2cefc5
commit
81f40a57e4
13 changed files with 207 additions and 214 deletions
|
@ -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) => {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue