mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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
|
@ -150,9 +150,9 @@ impl JS<XMLHttpRequest> {
|
|||
|
||||
impl<T: Reflectable> JS<T> {
|
||||
/// Create a new JS-owned value wrapped from a raw Rust pointer.
|
||||
pub unsafe fn from_raw(raw: *mut T) -> JS<T> {
|
||||
pub unsafe fn from_raw(raw: *T) -> JS<T> {
|
||||
JS {
|
||||
ptr: raw as *T
|
||||
ptr: raw
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue