mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
Make JS<T>::clone inline.(fixes #1955)
This commit is contained in:
parent
7bd3ba9e1b
commit
2fe92bf7ba
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ impl<T> Eq for JS<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl <T> Clone for JS<T> {
|
impl <T> Clone for JS<T> {
|
||||||
|
#[inline]
|
||||||
fn clone(&self) -> JS<T> {
|
fn clone(&self) -> JS<T> {
|
||||||
JS {
|
JS {
|
||||||
ptr: self.ptr.clone()
|
ptr: self.ptr.clone()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue