mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
"JS<T>::from_raw" should accept "*T" instead of "*mut T"
This commit is contained in:
parent
e511c04935
commit
106627e6eb
5 changed files with 13 additions and 13 deletions
|
@ -70,7 +70,7 @@ pub struct TrustedNodeAddress(pub *c_void);
|
|||
impl<S: Encoder<E>, E> Encodable<S, E> for TrustedNodeAddress {
|
||||
fn encode(&self, s: &mut S) -> Result<(), E> {
|
||||
let TrustedNodeAddress(addr) = *self;
|
||||
let node = addr as *Node as *mut Node;
|
||||
let node = addr as *Node;
|
||||
unsafe {
|
||||
JS::from_raw(node).encode(s)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue