mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +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> {
|
||||
#[inline]
|
||||
fn clone(&self) -> JS<T> {
|
||||
JS {
|
||||
ptr: self.ptr.clone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue