mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix a rustup warning. std::box::into_raw
is now safe.
This commit is contained in:
parent
64012cb10e
commit
18f69f2c87
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue