From 18f69f2c872888189eeefbaaaa4cb99857e31242 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 2 Jun 2015 15:27:46 +0200 Subject: [PATCH] Fix a rustup warning. `std::box::into_raw` is now safe. --- components/layout/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/layout/context.rs b/components/layout/context.rs index 393794bb57b..deda786157d 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -49,7 +49,7 @@ fn create_or_get_local_context(shared_layout_context: &SharedLayoutContext) applicable_declarations_cache: ApplicableDeclarationsCache::new(), style_sharing_candidate_cache: StyleSharingCandidateCache::new(), }; - r.set(unsafe { boxed::into_raw(context) }); + r.set(boxed::into_raw(context)); } else if shared_layout_context.screen_size_changed { unsafe { (*r.get()).applicable_declarations_cache.evict_all();