mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Implement Clone for Root.
This commit is contained in:
parent
5aa62b3621
commit
0d732ebb5f
1 changed files with 6 additions and 0 deletions
|
@ -606,6 +606,12 @@ impl<T: Reflectable> PartialEq for Root<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<T: Reflectable> Clone for Root<T> {
|
||||||
|
fn clone(&self) -> Root<T> {
|
||||||
|
Root::from_ref(&*self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<T: Reflectable> Drop for Root<T> {
|
impl<T: Reflectable> Drop for Root<T> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue