diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-08-27 22:15:54 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-08-27 22:27:43 +0200 |
commit | 709d347872e37ab2358e057d24557b9977238ecd (patch) | |
tree | 89f726bf207325eea8a8ca316f6d77d8c88432cb /components/script/dom/customevent.rs | |
parent | 856fda7f2e3fe4abd6de247e8bdaf8cedf3764c2 (diff) | |
download | servo-709d347872e37ab2358e057d24557b9977238ecd.tar.gz servo-709d347872e37ab2358e057d24557b9977238ecd.zip |
Make the traits for the IDL interfaces take &self
Diffstat (limited to 'components/script/dom/customevent.rs')
-rw-r--r-- | components/script/dom/customevent.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/customevent.rs b/components/script/dom/customevent.rs index 17e8bfdd4a7..a0bd520bb1e 100644 --- a/components/script/dom/customevent.rs +++ b/components/script/dom/customevent.rs @@ -62,14 +62,14 @@ impl CustomEvent { } } -impl<'a> CustomEventMethods for &'a CustomEvent { +impl CustomEventMethods for CustomEvent { // https://dom.spec.whatwg.org/#dom-customevent-detail - fn Detail(self, _cx: *mut JSContext) -> JSVal { + fn Detail(&self, _cx: *mut JSContext) -> JSVal { self.detail.get() } // https://dom.spec.whatwg.org/#dom-customevent-initcustomevent - fn InitCustomEvent(self, + fn InitCustomEvent(&self, _cx: *mut JSContext, type_: DOMString, can_bubble: bool, |