mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use BarCast::to_layout_js() instead of LayoutJS.to_script().
This commit is contained in:
parent
80a4911f9c
commit
8889041c19
2 changed files with 25 additions and 33 deletions
|
@ -144,14 +144,6 @@ pub struct LayoutJS<T> {
|
|||
ptr: NonZero<*const T>
|
||||
}
|
||||
|
||||
impl<T> LayoutJS<T> {
|
||||
pub fn to_script(self) -> JS<T> {
|
||||
JS {
|
||||
ptr: self.ptr
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Copy for JS<T> {}
|
||||
|
||||
impl<T> Copy for LayoutJS<T> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue