mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Suppress the compiler warning about raw_pointer_deriving in layout/context.rs.
This suppress the following compile warning: ``` compile: servo src/components/main/layout/context.rs:75:18: 75:26 warning: use of `#[deriving]` with a raw pointer, #[warn(raw_pointer_deriving)] on by default src/components/main/layout/context.rs:75 pub stylist: *Stylist, ^~~~~~~~ ```
This commit is contained in:
parent
c983b2b97e
commit
45cbd77af1
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ static mut STYLE_SHARING_CANDIDATE_CACHE: *mut StyleSharingCandidateCache =
|
|||
local_data_key!(style_sharing_candidate_cache: *mut StyleSharingCandidateCache)
|
||||
|
||||
/// Data shared by all layout workers.
|
||||
#[allow(raw_pointer_deriving)]
|
||||
#[deriving(Clone)]
|
||||
pub struct LayoutContext {
|
||||
/// The local image cache.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue