diff options
author | Adam Szopa <adam@szopa.org.pl> | 2015-10-21 01:00:58 +0200 |
---|---|---|
committer | Adam Szopa <adam@szopa.org.pl> | 2015-10-21 01:27:48 +0200 |
commit | 88991013ab8f5cf2a3b37d794fcd1699264e8f39 (patch) | |
tree | 8ff70c9d7c68211f3d5ba63ce82768e0feab081f /components/script/dom/htmlformelement.rs | |
parent | 11d23a41b31c2b2846d1e9c6b40e87ba7e2a095f (diff) | |
download | servo-88991013ab8f5cf2a3b37d794fcd1699264e8f39.tar.gz servo-88991013ab8f5cf2a3b37d794fcd1699264e8f39.zip |
Remove explicit lifetimes which can be elided.
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r-- | components/script/dom/htmlformelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index 8fa12c02c6c..475252fa92e 100644 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -218,7 +218,7 @@ impl HTMLFormElement { win.r().pipeline(), load_data)).unwrap(); } - fn get_unclean_dataset<'a>(&self, submitter: Option<FormSubmitter<'a>>) -> Vec<FormDatum> { + fn get_unclean_dataset(&self, submitter: Option<FormSubmitter>) -> Vec<FormDatum> { let node = NodeCast::from_ref(self); // TODO: This is an incorrect way of getting controls owned // by the form, but good enough until html5ever lands @@ -256,7 +256,7 @@ impl HTMLFormElement { // https://html.spec.whatwg.org/multipage/#the-directionality } - pub fn get_form_dataset<'a>(&self, submitter: Option<FormSubmitter<'a>>) -> Vec<FormDatum> { + pub fn get_form_dataset(&self, submitter: Option<FormSubmitter>) -> Vec<FormDatum> { fn clean_crlf(s: &str) -> DOMString { // https://html.spec.whatwg.org/multipage/#constructing-the-form-data-set // Step 4 @@ -515,7 +515,7 @@ pub trait FormControl: ElementBase + Reflectable { } impl VirtualMethods for HTMLFormElement { - fn super_type<'b>(&'b self) -> Option<&'b VirtualMethods> { + fn super_type(&self) -> Option<&VirtualMethods> { Some(HTMLElementCast::from_ref(self) as &VirtualMethods) } |