aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-05-01 21:19:46 +0200
committerMs2ger <ms2ger@gmail.com>2015-05-01 21:19:46 +0200
commit5f6b791e626b1a012665b917cb9173ceaf5f4bcc (patch)
tree2ca81a51b021306e53c25cde4d1951af1c1b608e
parentb59f54ce81e06c416e039119e1df70e5cbde41f8 (diff)
downloadservo-5f6b791e626b1a012665b917cb9173ceaf5f4bcc.tar.gz
servo-5f6b791e626b1a012665b917cb9173ceaf5f4bcc.zip
Add a Reflectable bound to Trusted's type parameter.
-rw-r--r--components/script/dom/bindings/refcounted.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/refcounted.rs b/components/script/dom/bindings/refcounted.rs
index 8a626ac6b67..204ef93e023 100644
--- a/components/script/dom/bindings/refcounted.rs
+++ b/components/script/dom/bindings/refcounted.rs
@@ -47,7 +47,7 @@ unsafe impl Send for TrustedReference {}
/// shared among tasks for use in asynchronous operations. The underlying
/// DOM object is guaranteed to live at least as long as the last outstanding
/// `Trusted<T>` instance.
-pub struct Trusted<T> {
+pub struct Trusted<T: Reflectable> {
/// A pointer to the Rust DOM object of type T, but void to allow
/// sending `Trusted<T>` between tasks, regardless of T's sendability.
ptr: *const libc::c_void,