aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/macros.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-07-06 18:16:30 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-07-16 08:03:54 +0200
commit17ec774a49e37f39bd50334e88a1d5937f3d24b1 (patch)
treec61423544c447e415f0c3249fe7e394a658917e3 /components/style/macros.rs
parent00b3fb49c42127aa93b3aa29501d2f4a26451e67 (diff)
downloadservo-17ec774a49e37f39bd50334e88a1d5937f3d24b1.tar.gz
servo-17ec774a49e37f39bd50334e88a1d5937f3d24b1.zip
Stylo: replace uses of mem::uninitialized with MaybeUninit
MozReview-Commit-ID: KGhYL6DJRaR
Diffstat (limited to 'components/style/macros.rs')
-rw-r--r--components/style/macros.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/macros.rs b/components/style/macros.rs
index 229e864977a..b4f4f1f7caf 100644
--- a/components/style/macros.rs
+++ b/components/style/macros.rs
@@ -112,8 +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 =
+ ::std::mem::MaybeUninit::<$crate::gecko_bindings::structs::AutoProfilerLabel>::uninit();
let _profiler_label = if $crate::gecko::profiler::profiler_is_active() {
unsafe {
Some($crate::gecko::profiler::AutoProfilerLabel::new(