Fix a rustup warning. std::box::into_raw is now safe.

This commit is contained in:
Simon Sapin 2015-06-02 15:27:46 +02:00
parent 64012cb10e
commit 18f69f2c87

View file

@ -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();