mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove generics from unsafe_no_jsmanaged_fields
This commit is contained in:
parent
291a131dd8
commit
f20361179d
3 changed files with 160 additions and 30 deletions
|
@ -133,7 +133,11 @@ impl<T: WeakReferenceable> PartialEq<T> for WeakRef<T> {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe_no_jsmanaged_fields!(WeakRef<T: WeakReferenceable>);
|
||||
unsafe impl<T: WeakReferenceable> JSTraceable for WeakRef<T> {
|
||||
unsafe fn trace(&self, _: *mut JSTracer) {
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: WeakReferenceable> Drop for WeakRef<T> {
|
||||
fn drop(&mut self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue