mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Stop using mem::transmute_copy.
This commit is contained in:
parent
c46003eb05
commit
5ae29b02b6
2 changed files with 10 additions and 5 deletions
|
@ -51,7 +51,7 @@ use selectors::matching::ElementFlags;
|
|||
use selectors::parser::{AttrSelector, NamespaceConstraint};
|
||||
use std::fmt;
|
||||
use std::marker::PhantomData;
|
||||
use std::mem::{transmute, transmute_copy};
|
||||
use std::mem::transmute;
|
||||
use std::sync::Arc;
|
||||
use string_cache::{Atom, Namespace};
|
||||
use style::attr::AttrValue;
|
||||
|
@ -119,8 +119,7 @@ impl<'ln> TNode for ServoLayoutNode<'ln> {
|
|||
|
||||
fn to_unsafe(&self) -> UnsafeNode {
|
||||
unsafe {
|
||||
let ptr: usize = transmute_copy(self);
|
||||
(ptr, 0)
|
||||
(self.node.unsafe_get() as usize, 0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue